EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPENS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
phpsteve
Posts: 10
Joined: Thu Dec 10, 2015 9:22 am

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Post 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!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
phpsteve
Posts: 10
Joined: Thu Dec 10, 2015 9:22 am

Re: EVENT HANDLER NAGIOS / NAGIOSSQL RUNS BUT NOTHING HAPPEN

Post by phpsteve »

Sure.. you can close it out. This issue (a.k.a. me) has been resolved.
Locked