diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index bdaff56427..ae6017056d 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -3,7 +3,7 @@ ############### ## {{ env }} {% for key, value in groups.iteritems() %} -{% if groups[key] != [] and groups[key] != 'newcloud-compute' and groups[key] != 'newcloud-control' and groups[key] != 'newcloud' %} +{% if groups[key] != [] and ( groups[key] != 'newcloud-compute' or groups[key] != 'newcloud-control' or groups[key] != 'newcloud' ) %} define hostgroup{ hostgroup_name {{ key }} alias {{ key }}