Event handler questions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Event handler questions

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Event handler questions

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Event handler questions

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Event handler questions

Post by abrist »

Do you see and "EXTERNAL COMMAND" references in the event log?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Event handler questions

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Event handler questions

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Event handler questions

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Event handler questions

Post by abrist »

Great, enjoy the weekend good sir!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Event handler questions

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Event handler questions

Post by abrist »

Did you enable the event handler by bulletting the "event handler enabled" option on the "check settings" tab of the check?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked