So I setup eventhandler for one of my servers similar to the write up on the nagios site.
I see the eventhandler is triggered in nagios.log.
“ SERVICE EVENT HANDLER: ice.asdf.com;HTTP;CRITICAL;HARD;3;restart-httpd”
however, the restart-httpd is not triggered.
so then I ran the script via the command line:
./restart-httpd CRITICAL SOFT 3
the script works.
command_line /usr/local/nagios/libexec/eventhandlers/restart-httpd $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$
can anyone offer an explanation on why it looks like the event trigger is being triggered but the $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ is not being sent to the script…
what else should I be looking at…?
thanks in advance.