try and teach nagios about hosts we want to monitor swap on and ones we do not want to
This commit is contained in:
parent
0c32147281
commit
8b5a273b10
8 changed files with 25 additions and 2 deletions
|
@ -261,6 +261,7 @@ nagios_Check_Services:
|
||||||
named: false
|
named: false
|
||||||
dhcpd: false
|
dhcpd: false
|
||||||
httpd: false
|
httpd: false
|
||||||
|
swap: true
|
||||||
|
|
||||||
# Set variable if we want to use our global iptables defaults
|
# Set variable if we want to use our global iptables defaults
|
||||||
# Some things need to set their own.
|
# Some things need to set their own.
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
# nagios items
|
# nagios items
|
||||||
# We don't use nrpe to check any of the builders
|
# We don't use nrpe to check any of the builders
|
||||||
|
# Nor do we check swap there.
|
||||||
nagios_Check_Services:
|
nagios_Check_Services:
|
||||||
nrpe: false
|
nrpe: false
|
||||||
|
swap: false
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
# nagios items
|
# nagios items
|
||||||
# We don't use nrpe to check any of the builders
|
# We don't use nrpe to check any of the builders
|
||||||
|
# Nor do we check swap there.
|
||||||
nagios_Check_Services:
|
nagios_Check_Services:
|
||||||
nrpe: false
|
nrpe: false
|
||||||
|
swap: false
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
nagios_Check_Services:
|
nagios_Check_Services:
|
||||||
nrpe: false
|
nrpe: false
|
||||||
|
swap: false
|
||||||
datacenter: cloud
|
datacenter: cloud
|
||||||
|
|
|
@ -63,3 +63,5 @@ nrpe_check_postfix_queue_crit: 200
|
||||||
nrpe_procs_warn: 300
|
nrpe_procs_warn: 300
|
||||||
nrpe_procs_crit: 500
|
nrpe_procs_crit: 500
|
||||||
|
|
||||||
|
nagios_Check_Services:
|
||||||
|
swap: false
|
||||||
|
|
|
@ -2,3 +2,11 @@
|
||||||
# This is now a cloud instance provided by host1plus
|
# This is now a cloud instance provided by host1plus
|
||||||
# vmhost: none
|
# vmhost: none
|
||||||
datacenter: host1plus
|
datacenter: host1plus
|
||||||
|
|
||||||
|
nagios_Check_Services:
|
||||||
|
nrpe: true
|
||||||
|
sshd: true
|
||||||
|
named: false
|
||||||
|
dhcpd: false
|
||||||
|
httpd: true
|
||||||
|
swap: false
|
||||||
|
|
|
@ -16,3 +16,11 @@ dns: 8.8.8.8
|
||||||
eth0_ip: 185.141.165.254
|
eth0_ip: 185.141.165.254
|
||||||
eth0_nm: 255.255.254.0
|
eth0_nm: 255.255.254.0
|
||||||
vpn: true
|
vpn: true
|
||||||
|
|
||||||
|
nagios_Check_Services:
|
||||||
|
nrpe: true
|
||||||
|
sshd: true
|
||||||
|
named: false
|
||||||
|
dhcpd: false
|
||||||
|
httpd: true
|
||||||
|
swap: false
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name CheckSwap
|
hostgroup_name CheckSwap
|
||||||
alias Swap-Is-Low
|
alias Swap-Is-Low
|
||||||
members *, !status-fedora2, !registry-cdn, !phx2-gw, !ibiblio-gw, !cloud-gw, !bodhost-gw, !coloamer-gw, !dedicated-gw, !host1plus-gw, !internetx-gw, !osuosl-gw, !rdu-gw, !rdu-cc-gw, !tummy-gw, !proxy05.fedoraproject.org, !mirrorlist-host1plus.fedoraproject.org, !download-rdu01.fedoraproject.org, !virthost-rdu01.fedoraproject.org, !fas3-01.stg.phx2.fedoraproject.org, !osbs-control01.phx2.fedoraproject.org, {% for host in groups['builders'] %}!{{host}},{% endfor %} {% for host in groups['builders-stg'] %}!{{host}},{% endfor %} {% for host in groups['cloud'] %}!{{host}}, {% endfor %} {% for host in vars['phx2_management_limited'] %}!{{host}},{% endfor %} {% for host in vars['phx2_management_hosts'] %}!{{host}}{% if not loop.last %},{% endif %} {% endfor %}
|
members {% for host in groups['all'] %}{% if hostvars[host].nagios_Check_Services['swap'] == true %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue