Introduce nrpe_check_total_procs var

This commit is contained in:
nemunaire 2024-01-14 21:03:15 +01:00
parent b3516cb24f
commit 9f4e8dcbc2
2 changed files with 2 additions and 5 deletions

View File

@ -1,3 +1,4 @@
---
nagios_extra_groups: []
nrpe_check_disk_exclude: []
nrpe_check_total_procs: 220

View File

@ -296,11 +296,7 @@ command[check_disks]=/usr/lib/nagios/plugins/check_disk -w 16% -c 9% -A{% for nr
command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
{% if inventory_hostname == 'geb.ra.nemunai.re' or inventory_hostname == 'jizah.masr.nemunai.re' %}
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 260 -c 300
{% else %}
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 190 -c 220
{% endif %}
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w {{ nrpe_check_total_procs * 0.9 | int }} -c {{ nrpe_check_total_procs }}
{% if inventory_hostname == 'hesat.ra.nemunai.re' %}
command[check_ntp_time]=/usr/lib/nagios/plugins/check_ntp_time -H fr.pool.ntp.org -w 1 -c 2
{% else %}