Manually clearing queued up eventhandler processing
Posted: Tue Jun 19, 2018 1:49 pm
Hello,
We use the global event handler processing with a script that executes each time an event comes in. This passes information to an API for service now so we can auto-create tickets for things when problems happen. For the most part this is working pretty good and we like the ability service now has to put logic into the events that come in and only create alerts for necessary things based on hostgroup criteria.
When we have large outages (a WAN link goes down), nagios will suddenly see a large number hosts suddenly go down, even if the parent relationship is setup correctly to moniitor a WAN link, during the time it figures out the WAN link is down, there may be several hundred or more hosts that get marked as down which will flag the eventhandler processing for all that. We find that once these global outages are fixed (maybe 10 minutes later), the eventhandler processing still continues to send "old" events (it will say something is down when it's not down).
Does anyone know of any commands that can be run on the nagios master that will "clean out" all the queued up eventhandler actions?
Thanks,
Dan
We use the global event handler processing with a script that executes each time an event comes in. This passes information to an API for service now so we can auto-create tickets for things when problems happen. For the most part this is working pretty good and we like the ability service now has to put logic into the events that come in and only create alerts for necessary things based on hostgroup criteria.
When we have large outages (a WAN link goes down), nagios will suddenly see a large number hosts suddenly go down, even if the parent relationship is setup correctly to moniitor a WAN link, during the time it figures out the WAN link is down, there may be several hundred or more hosts that get marked as down which will flag the eventhandler processing for all that. We find that once these global outages are fixed (maybe 10 minutes later), the eventhandler processing still continues to send "old" events (it will say something is down when it's not down).
Does anyone know of any commands that can be run on the nagios master that will "clean out" all the queued up eventhandler actions?
Thanks,
Dan