forked from evolix/ansible-roles
35 lines
2.1 KiB
Plaintext
35 lines
2.1 KiB
Plaintext
|
#
|
||
|
# Custom NRPE configuration file.
|
||
|
# Part of the EvoBSD distribution.
|
||
|
#
|
||
|
|
||
|
# Allowed IPs
|
||
|
allowed_hosts={{ nagios_nrpe_allowed_hosts | join(',') }}
|
||
|
|
||
|
command[check_users]=/usr/local/libexec/nagios/check_users -w 5 -c 10
|
||
|
command[check_load]=/usr/local/libexec/nagios/check_load -w 15,10,5 -c 30,25,20
|
||
|
command[check_disk1]=/usr/local/libexec/nagios/check_disk -x /lib/init/rw -x /dev -x /dev/shm -w 10% -c 3% -W 10% -K 3% -C -w 5% -c 2% -W 5% -K 2% -p /home
|
||
|
command[check_zombie_procs]=/usr/local/libexec/nagios/check_procs -w 5 -c 10 -s Z
|
||
|
command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 150 -c 200
|
||
|
command[check_imap]=/usr/local/libexec/nagios/check_imap -H localhost
|
||
|
command[check_smtp]=/usr/local/libexec/nagios/check_smtp -H localhost -f alert5@evolix.fr
|
||
|
command[check_dns]=/usr/local/libexec/nagios/check_dns -H evolix.net
|
||
|
command[check_swap]=/usr/local/libexec/nagios/check_swap -a -w 30% -c 20%
|
||
|
command[check_ntp]=/usr/local/libexec/nagios/check_ntp -H ntp.evolix.net
|
||
|
command[check_http]=/usr/local/libexec/nagios/check_http -H localhost -p 80
|
||
|
command[check_onduleur]=/usr/local/libexec/nagios/check_ups -H localhost -u onduleur
|
||
|
# Pour check_mailq, ajouter dans sudo :
|
||
|
# _nrpe ALL=NOPASSWD: /usr/local/libexec/nagios/check_mailq
|
||
|
command[check_mailq]=sudo /usr/local/libexec/nagios/check_mailq -w 10 -c 20
|
||
|
command[check_bind]=/usr/local/libexec/nagios/check_dig -l evolix.net -H localhost
|
||
|
command[check_ssh]=/usr/local/libexec/nagios/check_ssh -p 22 localhost
|
||
|
command[check_proxy]=/usr/local/libexec/nagios/check_tcp -p PORT
|
||
|
#command[check_vpn]=/usr/local/libexec/nagios/check_ping -H IPDISTANTE -p 1 -w 5000,100% -c 5000,100%
|
||
|
command[check_vpn]=sudo /usr/local/libexec/nagios/check_ipsecctl.sh IPDISTANTE IPLOCALE "VPN MARSEILLE-ROME"
|
||
|
command[check_openvpn]=/usr/local/libexec/nagios/check_openvpn
|
||
|
command[check_pf_states]=bash -x /usr/local/libexec/nagios/check_pf_states
|
||
|
command[check_carp1]=/usr/local/libexec/nagios/check_carp_if carp0 master
|
||
|
command[check_mem]=/usr/local/libexec/nagios/check_free_mem.sh -w 20 -c 10
|
||
|
command[check_dhcpclient]=/usr/local/libexec/nagios/check_dhcp -i INTERFACE
|
||
|
command[check_smb]=/usr/local/libexec/nagios/check_tcp -H IPLOCALE -p 445
|