ok, lets try this one
This commit is contained in:
parent
60469243d2
commit
e96ee43612
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,9 @@
|
|||
## {{ env }}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] != [] and hostvars[host].nagios_Check_Services['monitor'] == true %}
|
||||
{% if groups[key] != [] %}
|
||||
{% for host in groups[key] %}
|
||||
{% if hostvars[host].nagios_Check_Services['monitor'] == true %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
|
@ -12,6 +14,7 @@ define hostgroup{
|
|||
|
||||
}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
## Services with minimal monitoring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue