diff --git a/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 index f436fd3848..129dcf467c 100644 --- a/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 @@ -1,5 +1,5 @@ {% for host in groups['all']|sort %} -{% if hostvars[host].datacenter == 'rdu3' and hostvars[host].nagios_Can_Connect == true %} +{% if hostvars[host].datacenter == 'rdu3' or if hostvars[host].datacenter == 'rdu3-iso' and hostvars[host].nagios_Can_Connect == true %} define host { {% if hostvars[host].nagios_Check_Services['nrpe'] == true %} use defaulttemplate @@ -26,4 +26,4 @@ define host { {% endif %} } {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %}