try this
This commit is contained in:
parent
06a23947a5
commit
60469243d2
3 changed files with 3 additions and 1 deletions
|
@ -259,6 +259,7 @@ createrepo: True
|
||||||
|
|
||||||
# Nagios global variables
|
# Nagios global variables
|
||||||
nagios_Check_Services:
|
nagios_Check_Services:
|
||||||
|
monitor: true
|
||||||
nrpe: true
|
nrpe: true
|
||||||
sshd: true
|
sshd: true
|
||||||
named: false
|
named: false
|
||||||
|
|
|
@ -8,6 +8,7 @@ freezes: false
|
||||||
ansible_ifcfg_whitelist: ['eth1']
|
ansible_ifcfg_whitelist: ['eth1']
|
||||||
baseiptables: false
|
baseiptables: false
|
||||||
nagios_Check_Services:
|
nagios_Check_Services:
|
||||||
|
monitor: false
|
||||||
nrpe: false
|
nrpe: false
|
||||||
sshd: false
|
sshd: false
|
||||||
swap: false
|
swap: false
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if groups[key] != [] %}
|
{% if groups[key] != [] and hostvars[host].nagios_Check_Services['monitor'] == true %}
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name {{ key }}
|
hostgroup_name {{ key }}
|
||||||
alias {{ key }}
|
alias {{ key }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue