forked from evolix/ansible-roles
nagios-nrpe: check_load is now based on ansible_processor_vcpus
This commit is contained in:
parent
edad3a7ce7
commit
e2ae37fa3d
|
@ -23,6 +23,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* redmine: update default version to 4.0.3
|
* redmine: update default version to 4.0.3
|
||||||
* nagios-nrpe: change required status code for http and https check
|
* nagios-nrpe: change required status code for http and https check
|
||||||
* redmine: use custom errors-pages in Nginx vhost
|
* redmine: use custom errors-pages in Nginx vhost
|
||||||
|
* nagios-nrpe: check_load is now based on ansible_processor_vcpus
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* rbenv: add check_mode for check rbenv and ruby versions
|
* rbenv: add check_mode for check rbenv and ruby versions
|
||||||
|
|
|
@ -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 15,10,5 -c 30,25,20
|
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_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
|
||||||
|
|
Loading…
Reference in a new issue