[PATCH] notifications: Fix first_notification_delay

Jim Avery jim at jimavery.me.uk
Tue Dec 11 22:56:27 CET 2012


Please can I ask you to consider the following use case for
first_notification_delay?

We have a UPS which sends an SNMP trap to indicate input power has failed
and it goes on to battery.  Usually it shortly thereafter sends another
trap to show input power is restored.

These traps are handled by a passive service check configured with
max_check_attempts=1 and with stalking options to make sure if there is a
sequence of alerts they are all logged.  The on-battery trap is configured
to set the service state to Critical and the on-mains trap to set it to OK.

We want to send an SMS notification if the UPS goes on to battery, but only
if it has been on battery for more than, say, five minutes.  I had hoped
that first_notification_delay would give me that possibility.  Obviously as
this is a passive check and usually there is only one Critical check
serviceescalations and the like won't work so I'm ever hopeful that
first_notification_delay will one day do the job.

Please forgive me that I don't understand the programmatical issues well
enough to see if any of the proposed solutions so far will fit this use
case.

Many thanks in advance.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20121211/4a2078f4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list