Page 1 of 2

SNMP Trap Sender - sending events in downtime

Posted: Mon Feb 17, 2014 9:02 pm
by Fred Kroeger
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

Re: SNMP Trap Sender - sending events in downtime

Posted: Tue Feb 18, 2014 10:48 am
by sreinhardt
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.

Re: SNMP Trap Sender - sending events in downtime

Posted: Wed Feb 19, 2014 1:12 am
by Fred Kroeger
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
:oops:

Re: SNMP Trap Sender - sending events in downtime

Posted: Wed Feb 19, 2014 1:46 pm
by sreinhardt
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.

Re: SNMP Trap Sender - sending events in downtime

Posted: Wed Feb 19, 2014 7:18 pm
by Fred Kroeger
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

Re: SNMP Trap Sender - sending events in downtime

Posted: Thu Feb 20, 2014 11:23 am
by lmiltchev
We'll do that, Fred.

Re: SNMP Trap Sender - sending events in downtime

Posted: Thu Feb 20, 2014 12:03 pm
by sreinhardt
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 ***

Re: SNMP Trap Sender - sending events in downtime

Posted: Thu Feb 20, 2014 7:04 pm
by Fred Kroeger
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

Re: SNMP Trap Sender - sending events in downtime

Posted: Fri Feb 21, 2014 11:56 am
by sreinhardt
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.

Re: SNMP Trap Sender - sending events in downtime

Posted: Tue Mar 04, 2014 2:51 am
by Fred Kroeger
Hi Spenser - any update on this please?