Add some checks that are needed on the proxies

This commit is contained in:
Kevin Fenzi 2015-01-21 00:07:25 +00:00
parent 3409a66a3a
commit cad791174d
3 changed files with 13 additions and 0 deletions

View file

@ -133,6 +133,17 @@
tags:
- nagios_client
- name: install nrpe checks for proxies
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }}
with_items:
- check_happroxy_conns.cfg
- check_varnish_proc.cfg
when: inventory_hostname.startswith('proxy')
notify:
- restart nrpe
tags:
- nagios_client
- name: nrpe service start
service: name=nrpe state=running enabled=true
tags:

View file

@ -0,0 +1 @@
command[check_haproxy_conns]=/usr/lib64/nagios/plugins/check_haproxy_conns.py

View file

@ -0,0 +1 @@
command[check_varnish_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'varnishd' -u varnish