- template our nrpe.cfg

- setup vars for nrpe_procs_crit and nrpe_procs_warn
- set the value for crit and warn higher for mirrorlists to stop their whining
This commit is contained in:
Seth Vidal 2013-06-20 20:47:00 +00:00
parent 3575d0e55f
commit 5053d35c18
4 changed files with 9 additions and 4 deletions

View file

@ -202,7 +202,7 @@ command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 175 -c 200
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w {{ nrpe_procs_warn }} -c {{ nrpe_procs_crit }}
# The following examples allow user-supplied arguments and can

View file

@ -31,3 +31,7 @@ virt_install_command: /usr/sbin/virt-install -n ${inventory_hostname} -r ${mem_s
# By default, nodes get no fedmsg certs. They need to declare them explicitly.
fedmsg_certs: []
# by default the number of procs we allow before we whine
nrpe_procs_warn: 175
nrpe_procs_crit: 200

View file

@ -9,4 +9,5 @@ num_cpus: 4
tcp_ports: [ 80 ]
collectd_apache: true
fas_client_groups: sysadmin-noc
nrpe_procs_warn: 250
nrpe_procs_crit: 300

View file

@ -35,14 +35,14 @@
# FIXME? figure out nrpe selinux policy of DOOM is needed
- name: /etc/nagios/nrpe.cfg
copy: src=$files/nagios/client/nrpe.cfg dest=/etc/nagios/nrpe.cfg
template: src=$files/nagios/client/nrpe.cfg dest=/etc/nagios/nrpe.cfg
notify:
- restart nrpe
tags:
- config
- name: install nrpe client configs
copy: src=$files/nagios/client/$item dest=/etc/nrpe.d/$item
template: src=$files/nagios/client/$item dest=/etc/nrpe.d/$item
with_items:
- check_mirrorlist_cache.cfg
- check_raid.cfg