lets try this another way
This commit is contained in:
parent
a5ca432618
commit
83454d7260
2 changed files with 6 additions and 6 deletions
|
@ -1075,6 +1075,11 @@ fed-cloud15.cloud.fedoraproject.org
|
||||||
#fed-cloud-ppc01.cloud.fedoraproject.org
|
#fed-cloud-ppc01.cloud.fedoraproject.org
|
||||||
fed-cloud-ppc02.cloud.fedoraproject.org
|
fed-cloud-ppc02.cloud.fedoraproject.org
|
||||||
|
|
||||||
|
# Group for hosts we don't want to monitor with nagios.
|
||||||
|
[nomonitor:children]
|
||||||
|
newcloud-control
|
||||||
|
newcloud-compute
|
||||||
|
|
||||||
[newcloud:children]
|
[newcloud:children]
|
||||||
newcloud-control
|
newcloud-control
|
||||||
newcloud-compute
|
newcloud-compute
|
||||||
|
|
|
@ -2,11 +2,8 @@
|
||||||
# All Servers and associated devices
|
# All Servers and associated devices
|
||||||
###############
|
###############
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if groups[key] != [] %}
|
{% if groups[key] != [] and groups[key] != 'nomonitor' %}
|
||||||
{% for host in groups[key] %}
|
|
||||||
{% if hostvars[host].nagios_Check_Services['monitor'] == true %}
|
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name {{ key }}
|
hostgroup_name {{ key }}
|
||||||
alias {{ key }}
|
alias {{ key }}
|
||||||
|
@ -15,8 +12,6 @@ define hostgroup{
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
## Services with minimal monitoring
|
## Services with minimal monitoring
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue