Page 1 of 2
Event handler questions
Posted: Thu Jun 13, 2013 9:19 am
by BanditBBS
When an event handler is kicked off, if that not logged in the event log? I was trying to test one on a critical service and I couldn't see where to tell if the event handler was actually being run. I wonder, because the command that should have fixed the critical issue either was not run, or there is an issue.
I am running gearman, but the neb is configured to NOT distribute eventhandler.
Re: Event handler questions
Posted: Thu Jun 13, 2013 12:47 pm
by lmiltchev
It should show up in the event log. Perhaps, there is an issue with the way you set it up. Are you sure it actually runs?
Re: Event handler questions
Posted: Thu Jun 13, 2013 12:56 pm
by BanditBBS
lmiltchev wrote:It should show up in the event log. Perhaps, there is an issue with the way you set it up. Are you sure it actually runs?
Nope, that is why I was asking if it should appear in the log or not. I had the handler disabled as I just wrote the command wand wanted to know next time the service had an issue. I then enabled the even handler andwas hopign to see it run and fix the issue, but alas, nothing ever appeard in even log.
Re: Event handler questions
Posted: Thu Jun 13, 2013 3:46 pm
by abrist
Do you see and "EXTERNAL COMMAND" references in the event log?
Re: Event handler questions
Posted: Thu Jun 13, 2013 3:52 pm
by BanditBBS
abrist wrote:Do you see and "EXTERNAL COMMAND" references in the event log?
Nothing related to my testing today.
When does the event handler get kicked off? 1st soft? Not til hard? And if already hard and then I set event handler as active, will it get kicked off?
Re: Event handler questions
Posted: Thu Jun 13, 2013 4:16 pm
by lmiltchev
Event handlers are executed when a service or host:
Is in a SOFT problem state
Initially goes into a HARD problem state
Initially recovers from a SOFT or HARD problem state
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html
Re: Event handler questions
Posted: Thu Jun 13, 2013 5:48 pm
by BanditBBS
Wow, I think I was just told to RTFM! LOL
Umm, I just did and not sure why mine wasn't working. But I am going to set it up exactly as shown and even use the example script(modified slightly). I'll let you know if I have more questions or not.
Re: Event handler questions
Posted: Fri Jun 14, 2013 11:53 am
by abrist
Great, enjoy the weekend good sir!
Re: Event handler questions
Posted: Mon Jun 17, 2013 9:02 am
by BanditBBS
My event handler is just not being called. Nothing in event log at all. I keep submitting passive check results and putting it in a critical state and nothing....
Any idea why?
Re: Event handler questions
Posted: Mon Jun 17, 2013 10:36 am
by abrist
Did you enable the event handler by bulletting the "event handler enabled" option on the "check settings" tab of the check?