From cecac4ee45d6c68e5e13e7e17e118c7a9a1c8d46 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 1 Dec 2017 01:52:14 +0000 Subject: [PATCH] and we needed to add it here --- roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index 445c3e5700..56d750a592 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -8,7 +8,7 @@ define hostgroup{ hostgroup_name {{ key }} alias {{ key }} - members {% for host in groups[key] %}{{host}}, {% endfor %} + members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}{% endif %}, {% endfor %} } {% endif %}