Add some checks that are needed on the proxies
This commit is contained in:
parent
3409a66a3a
commit
cad791174d
3 changed files with 13 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
command[check_haproxy_conns]=/usr/lib64/nagios/plugins/check_haproxy_conns.py
|
1
roles/nagios_client/templates/check_varnish_proc.cfg.j2
Normal file
1
roles/nagios_client/templates/check_varnish_proc.cfg.j2
Normal file
|
@ -0,0 +1 @@
|
|||
command[check_varnish_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'varnishd' -u varnish
|
Loading…
Add table
Add a link
Reference in a new issue