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:
parent
bca3a95d7c
commit
7b424a3a49
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue