From b606ddb322e041d535106793066e96c99b3eab02 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 11 May 2020 16:14:10 -0700 Subject: [PATCH] iad2: try putting nagios_Can_Connect in Signed-off-by: Kevin Fenzi --- .../nagios_server/templates/nagios/hostgroups/checkraid.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/checkraid.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/checkraid.cfg.j2 index a562de40e6..8c63a0050a 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/checkraid.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/checkraid.cfg.j2 @@ -1,6 +1,6 @@ define hostgroup { hostgroup_name CheckRaid alias Raid-Issue - members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['raid'] == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %} + members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['raid'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %} }