iad2: try putting nagios_Can_Connect in

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-11 16:14:10 -07:00
parent f5cbd5b36f
commit b606ddb322
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}
}