add samhain restart magic
authorStephen Gran <steve@lobefin.net>
Sat, 8 Feb 2014 11:08:47 +0000 (11:08 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 8 Feb 2014 11:08:47 +0000 (11:08 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
config/nagios-master.cfg
config/static/eventhandlers.cfg

index 7c7f1a4..fbe7422 100644 (file)
@@ -1543,6 +1543,7 @@ services:
   -
     name: processes - zombies
     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
+    event_handler: dsa_event_handler_restart_samhain
     hostgroups: computers
  ####
   -
index d4a632d..c790128 100644 (file)
@@ -2,3 +2,8 @@ define command{
        command_name    dsa_event_handler_restart_ekey
        command_line    /usr/lib/nagios/plugins/dsa-eventhandler-restart-service '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEATTEMPT$' '$HOSTADDRESS$' WARNING restart-ekey
 }
+
+define command{
+       command_name    dsa_event_handler_restart_samhain
+       command_line    /usr/lib/nagios/plugins/dsa-eventhandler-restart-service '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEATTEMPT$' '$HOSTADDRESS$' WARNING restart-samhain
+}