Hi,<br><br>I have a bash script set up to run as an event handler. The command I defined in commands.cfg is:<br><br>define command{<br>        command_name    http-host-event<br>        command_line    /usr/local/nagios/libexec/eventhandlers/http_host_event $HOSTNAME$ $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$<br>
        }<br><br><br>I have it configured to run for SOFT Host down. But it doesnt seem to be running from nagios. This is what the nagios error log shows:<br><br>[1209832148] HOST EVENT HANDLER: server.com;(null);(null);(null);http-host-event<br>
<br>But if I run "/usr/local/nagios/libexec/eventhandlers/http_host_event $HOSTNAME$ $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$" from shell with the macros substituted with the actual value, it works.<br>
<br>Can someone suggest how I can get this working. I'm using v3.0.1.<br><br>Thank you.<br><br><br>