Thanks for posting the updated settings. The event Handler should be enabled and that if it is in the nagios.log file, it should be running.
I missed it from before but the check_printer_restart command is using $ARG1$ for the host address in the command line and it should be changed to $HOSTADDRESS$ so when the Event is run, it will get the address from the Host and run the command on the correct system.
Try that and see if that was the issue.
EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPENS
Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN
Freaking awesome.. man.. that did it. I didn't take into account that in nagioSQL I pass the HOSTADDRESS but in the EventHandler, there is no option so you have to pull the hostaddress. Much appreciated. Sometimes you need a second set of eyes lol
You rock!
Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN
Your very welcome! Glad it is working for you. If you don't have any other questions, shall I close and lock the post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN
Sure.. you can close it out. This issue (a.k.a. me) has been resolved.