ok, lets try this one

This commit is contained in:
Kevin Fenzi 2018-05-17 21:15:15 +00:00
parent 60469243d2
commit e96ee43612

View file

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