From 553341ca7a28dcfdfa3eaa3ddffc8bb0feb60a0b Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sat, 6 Jun 2020 16:51:08 -0400 Subject: [PATCH] have to add group by group to see where break is --- .../templates/nagios/hostgroups/all.cfg.j2 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index cd42e1da82..fbd4b86fdb 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -2,16 +2,6 @@ # All Servers and associated devices ############### ## {{ env }} -{% for key, value in groups.iteritems()|sort %} -{% if groups[key] != [] and key not in vars['exclude_hostgroups'] %} -define hostgroup{ - hostgroup_name {{ key }} - alias {{ key }} - members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %} - -} -{% endif %} -{% endfor %} define hostgroup{ hostgroup_name no_ping