nagios-nrpe: check_mode per cpu dynamically
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2020-02-28 12:14:12 +01:00 committed by Jérémy Lecour
parent 3a20f5f501
commit eb74bda22a
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ The **patch** part changes incrementally at each release.
* minifirewall: no http filtering by default * minifirewall: no http filtering by default
* nagios-nrpe: update check_redis_instances (same as redis role) * nagios-nrpe: update check_redis_instances (same as redis role)
* nagios-nrpe: change default haproxy socket path * nagios-nrpe: change default haproxy socket path
* nagios-nrpe: check_mode per cpu dynamically
* php: By default, allow 128M for OpCache (instead of 64M) * php: By default, allow 128M for OpCache (instead of 64M)
* php: Don't set a chroot for the default fpm pool * php: Don't set a chroot for the default fpm pool
* php: Make sure the default pool we define can be fully functionnal witout debian's default pool file * php: Make sure the default pool we define can be fully functionnal witout debian's default pool file

View File

@ -7,7 +7,7 @@
allowed_hosts={{ nagios_nrpe_allowed_hosts | join(',') }} allowed_hosts={{ nagios_nrpe_allowed_hosts | join(',') }}
# System checks # System checks
command[check_load]=/usr/lib/nagios/plugins/check_load -w {{ ansible_processor_vcpus * 0.7 }},{{ ansible_processor_vcpus * 0.6 }},{{ ansible_processor_vcpus * 0.5 }} -c {{ ansible_processor_vcpus * 0.9 }},{{ ansible_processor_vcpus * 0.8 }},{{ ansible_processor_vcpus * 0.7 }} 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_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 /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 -x /lib/init/rw -x /dev -x /dev/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_zombie_procs]=sudo /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z