nagios-nrpe: check_disk1 returns only alerts
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2022-07-27 09:24:44 +02:00 committed by Jérémy Lecour
parent b453321b3d
commit f7edd565a3
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* mongodb: replace version_compare() with version()
* nagios-nrpe: exclude /run/shm and /run/lock from check_disk1
* nagios-nrpe: check_disk1 returns only alerts
### Fixed

View File

@ -9,7 +9,7 @@ allowed_hosts={{ nagios_nrpe_allowed_hosts | join(',') }}
# System checks
command[check_load]=/usr/lib/nagios/plugins/check_load --percpu --warning=0.7,0.6,0.5 --critical=0.9,0.8,0.7
command[check_swap]=/usr/lib/nagios/plugins/check_swap -a -w 30% -c 20%
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -x /lib/init/rw -x /dev -x /dev/shm -x /run/lock -x /run/shm -x /sys/kernel/debug/tracing -w 10% -c 3% -W 10% -K 3% -C -w 5% -c 2% -W 5% -K 2% -p /home
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -e -x /lib/init/rw -x /dev -x /dev/shm -x /run/lock -x /run/shm -x /sys/kernel/debug/tracing -w 10% -c 3% -W 10% -K 3% -C -w 5% -c 2% -W 5% -K 2% -p /home
command[check_zombie_procs]=sudo /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=sudo /usr/lib/nagios/plugins/check_procs -w 400 -c 600
command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10