Page 1 of 1
Event Handlers are not getting executed sometimes
Posted: Wed May 04, 2016 8:29 am
by mdusanapudi
Hello Everyone,
We are using 2 event handlers one for host and one for service configured as global handlers through NagiosXI event handler component.
We observe that event handlers are not getting triggered sometimes. The Event handler script writes the entries to a log file , we verified that log file
to see some events which are there in nagios are missing.
I enabled the logging for event handlers and can see Default global event handlers running smoothly.
For the event handlers configured through the EVENTHANDLER component is there a way to enable logging to capture them in nagios log?
Appreciate your help on this.
Re: Event Handlers are not getting executed sometimes
Posted: Wed May 04, 2016 1:34 pm
by rkennedy
Can you show us more information about what you're seeing in the long files? Can you also post your event handler scripts that are running for us to take a look at?
We'll need a bit more information to understand what you're seeing exactly, so that we can try to replicate this on our end.
Re: Event Handlers are not getting executed sometimes
Posted: Tue May 10, 2016 6:58 am
by minnow
We have the following configured in our NagiosXI server:
Host State Change Handler Commands: /root/nagiosxi/evanios/eops_handler.pl 1 "%host%" "%hostaddress%" "NA" "%hostoutput%" "%hoststatetype%" "%hoststate%" "%lasthoststate%" "%hosteventid%" "%hostproblemid%" "%currentattempt%" "%maxattempts%" "%hoststateid%" "%lasthoststateid%" "" "%hostalias"
Service State Change Handler Commands: /root/nagiosxi/evanios/eops_handler.pl 2 "%host%" "%hostaddress%" "%service%" "%serviceoutput%" "%servicestatetype%" "%servicestate%" "%lastservicestate%" "%serviceeventid%" "%serviceproblemid%" "%currentattempt%" "%maxattempts%" "%servicestateid%" "%lastservicestateid%" "%longserviceoutput%" "%hostalias%"
For the Service State Change Handler Commands, we are missing about half of the calls for this handler, which are not creating Incidents. We are scraping logs and need to insure we are creating incidents for the Alerts that are getting posted in NagiosXI; however, it appears the Service State Change Handler Commands are not getting executed for each Critical Alert that get posted in NagiosXI. We have noticed that the State for each check wither it finds an item and post it to the NagiosXI console or it's reports a OK status, that state stays the same "HARD".
Re: Event Handlers are not getting executed sometimes
Posted: Tue May 10, 2016 10:18 am
by rkennedy
Closing this up as I see a ticket has been created, to avoid us working on it in two seperate locations.