]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnodes: Update nrpe config to use long-form switches and new nagios server IPs
authordgalloway <dgallowa@REDHAT.COM>
Wed, 23 Dec 2015 22:59:31 +0000 (17:59 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 24 Dec 2015 00:12:38 +0000 (19:12 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/templates/nagios/nrpe.cfg

index 13ff0b0b066323c1231c9513732fa2fb7192495b..7d70d08157b7133bf30a592f993368afaa35b696 100644 (file)
@@ -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