diff --git a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 index f92df922d7..aa06d067e5 100644 --- a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 @@ -1,4 +1,6 @@ {% for host in groups['cloud'] %} +{% if host.startswith('copr') and nagios_location == 'external' %} +{% else %} define host { {% if hostvars[host].nagios_Check_Services['nrpe'] == true and nagios_location == 'internal' %} use defaulttemplate @@ -26,4 +28,5 @@ define host { parents cloud-gw {% endif %} } +{% endif %} {% endfor %}