iad2: nagios_server: tweak raid check to only add hosts where raid check is true

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-11 15:19:34 -07:00
parent bca3a95d7c
commit 7b424a3a49

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'] %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['raid'] == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
}