From 99b02f1c194177ad51ee7368baa24d95fc0b55d5 Mon Sep 17 00:00:00 2001 From: dgalloway Date: Wed, 23 Dec 2015 17:59:31 -0500 Subject: [PATCH] testnodes: Update nrpe config to use long-form switches and new nagios server IPs Signed-off-by: David Galloway --- roles/testnode/templates/nagios/nrpe.cfg | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/roles/testnode/templates/nagios/nrpe.cfg b/roles/testnode/templates/nagios/nrpe.cfg index 13ff0b0..7d70d08 100644 --- a/roles/testnode/templates/nagios/nrpe.cfg +++ b/roles/testnode/templates/nagios/nrpe.cfg @@ -4,17 +4,22 @@ pid_file=/var/run/nagios/nrpe.pid server_port=5666 nrpe_user=nagios nrpe_group=nagios -allowed_hosts=127.0.0.1,10.214.140.231 + +# These should eventually be in a secrets group_var +# 172. address is sepia nagios server +# 10. address is octo nagios server +allowed_hosts=127.0.0.1,172.21.0.33,10.8.0.8 dont_blame_nrpe=0 debug=0 command_timeout=60 connection_timeout=300 -command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10 -command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 -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 -command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 300 -c 500 +command[check_users]={{ nagios_plugins_directory }}/check_users --warning=5 --critical=10 +command[check_load]={{ nagios_plugins_directory }}/check_load --warning=15,10,5 --critical=30,25,20 +command[check_hda1]={{ nagios_plugins_directory }}/check_disk --warning=20% --critical=10% --partition=/dev/hda1 +command[check_root]={{ nagios_plugins_directory }}/check_disk --warning=10% --critical=5% --units=GB --path=/ +command[check_zombie_procs]={{ nagios_plugins_directory }}/check_procs --warning=5 --critical=10 --state=Z +command[check_total_procs]={{ nagios_plugins_directory }}/check_procs --warning=300 --critical=500 command[check_raid]=/usr/libexec/raid.pl command[check_disks]=/usr/libexec/diskusage.pl 90 95 command[check_smart]=/usr/libexec/smart.pl -- 2.39.5