New forum member, long time Nagios user. I am having a problem with event handlers. Nagios is not running the specified event handler command when the state changes to CRITICAL or DOWN. Nagios does actually run the event handler command successfully when the state changes to OK or UP though. So, the handler runs when the service/host comes up every time - but never when it goes down.
This seems very strange to me - maybe I am missing something simple here? I have logged in as the nagios user and successfully run the handler program, so permissions are OK. Nagios version 1.4 on Debian Stable.
Thanks in advance.
use generic-service ; Name of service template to use
use generic-host ; Name of host template to use
I have set:
I have enabled event handler for the host and service separately in the web GUI.
I get these in the logs when state comes UP or OK:
SERVICE EVENT HANDLER: DL-TEST;PING;OK;HARD;1;DL-Port1
HOST EVENT HANDLER: DL-TEST;UP;HARD;1;DL-Port1
Nothing happens when it goes down (other than DOWN/CRITICAL alerts and contact notifications).