Page 2 of 2

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Posted: Mon May 08, 2017 9:27 am
by tgriep
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.

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Posted: Tue May 09, 2017 12:52 pm
by phpsteve
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 :lol: You rock!

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Posted: Tue May 09, 2017 1:39 pm
by tgriep
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?

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Posted: Tue May 09, 2017 2:21 pm
by phpsteve
Sure.. you can close it out. This issue (a.k.a. me) has been resolved.