From 80c6b54497e3925d95a37cec91c54b45e3802c13 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 28 Jul 2016 11:17:24 +0200 Subject: [PATCH] library/roles/nagios/templates/common-nrpe.cfg.j2: Add memory and swap checks to the common nrpe commands. --- nagios/templates/common-nrpe.cfg.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nagios/templates/common-nrpe.cfg.j2 b/nagios/templates/common-nrpe.cfg.j2 index 22f58df..707a700 100644 --- a/nagios/templates/common-nrpe.cfg.j2 +++ b/nagios/templates/common-nrpe.cfg.j2 @@ -1,8 +1,9 @@ -# Debian 4 doesn't support "-A -i options" +# command[global_check_disk]={{ nagios_plugins_dir }}/check_disk -w {{ nagios_check_disk_w }}% -c {{ nagios_check_disk_c }}% -X tmpfs -X proc -X sysfs -X devpts -X dev -A -i /mnt/.* -#command[global_check_disk]={{ nagios_plugins_dir }}/check_disk -w {{ nagios_check_disk_w }}% -c {{ nagios_check_disk_c }}% -X tmpfs -X proc -X sysfs -X devpts command[global_check_load]={{ nagios_plugins_dir }}/check_load -w 20,15,10 -c 35,30,25 +command[global_check_memory]={{ nagios_plugins_dir }}/check_memory -u G -w 5% -c 1% +command[global_check_load]={{ nagios_plugins_dir }}/check_swap -w 20% -c 5% command[global_check_zombie_procs]={{ nagios_plugins_dir }}/check_procs -w 5 -c 10 -s Z command[global_check_total_procs]={{ nagios_plugins_dir }}/check_procs -w 800 -c 1000