try to clean up
This commit is contained in:
parent
cd97509505
commit
6a411fae1b
2 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
define hostgroup {
|
||||
hostgroup_name CheckSwap
|
||||
alias Swap-Is-Low
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue