SNMP Trap Sender - sending events in downtime
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
SNMP Trap Sender - sending events in downtime
SNMP Trap Sender is working fine and has been configured to send ALL Hosts , ALL Services, State Type = HARD
and all has been working fine.... however.... just discovered it is also sending events for Host/Services that are in Scheduled Downtime.
I would have expected that it would not send any SNMP Traps for hosts/services while in downtime.
Is there any way to stop these events from being sent?
Running NagiosXI 2012R2.8c
Regards... Fred
and all has been working fine.... however.... just discovered it is also sending events for Host/Services that are in Scheduled Downtime.
I would have expected that it would not send any SNMP Traps for hosts/services while in downtime.
Is there any way to stop these events from being sent?
Running NagiosXI 2012R2.8c
Regards... Fred
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Trap Sender - sending events in downtime
I would agree that it should not do that. We will do some verification on our end and see what might be happening. Since it is an event handler and not a notification command, there might be some logical differences in core doing this.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: SNMP Trap Sender - sending events in downtime
Thanks Spenser - I appreciate it.
Typical ....I just got hit with 54 Outage Service Calls because the SNMP Trap sender forwarded the events generated during a scheduled outage

Typical ....I just got hit with 54 Outage Service Calls because the SNMP Trap sender forwarded the events generated during a scheduled outage
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Trap Sender - sending events in downtime
You're welcome, this is going to take me some time, as its purely digging through core source code. At this point I can clearly see where notifications disable themselves if in downtime, however there does not appear to be the same logic for host\service or global event handlers. I am sending an email to one of our core devs and will post back when I hear back from him.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: SNMP Trap Sender - sending events in downtime
Great - thanks Spenser
Can you send me a PM as soon as you know something - I have a few unhappy people at the moment closing off tickets.
regards... Fred
Can you send me a PM as soon as you know something - I have a few unhappy people at the moment closing off tickets.
regards... Fred
Re: SNMP Trap Sender - sending events in downtime
We'll do that, Fred.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Trap Sender - sending events in downtime
OK, so I know you are not going to like this, but we believe that this is expected and somewhat intentional behavior. Reason being that there is no direct mention of event handlers in the downtime documentation. This leads us to believe that the present lack of alteration to event handler execution when downtime is enabled, is expected, although not truly well documented either way.
With all of that, we believe the proper route is to forward whether the current host\service is in downtime, and have the event handler act appropriately. So, considering it is not truly a bug, it should be a feature request in my opinion. I will submit an internal request for it, and have spoken with the php devs and they are willing to put it out pretty quick.
*** Edit: Feature request has been submitted ***
With all of that, we believe the proper route is to forward whether the current host\service is in downtime, and have the event handler act appropriately. So, considering it is not truly a bug, it should be a feature request in my opinion. I will submit an internal request for it, and have spoken with the php devs and they are willing to put it out pretty quick.
*** Edit: Feature request has been submitted ***
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: SNMP Trap Sender - sending events in downtime
Thanks Spenser - appreciate your prompt action.
Perhaps this feature could be added to the SNMP Trap Sender Component as an option to give the choice whether or not to filter out the events while in downtime?
regards... Fred
Perhaps this feature could be added to the SNMP Trap Sender Component as an option to give the choice whether or not to filter out the events while in downtime?
regards... Fred
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Trap Sender - sending events in downtime
That is actually the feature request I submitted. One of our devs thinks he is just about done. I will send you a link to the zip once it's done.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: SNMP Trap Sender - sending events in downtime
Hi Spenser - any update on this please?