Delay sending SMS alerts....
Martin Melin
mmelin at gmail.com
Tue Nov 3 19:58:58 CET 2009
If you'd like a "queue" of messages, I'd say that this is outside the scope
of the Nagios logic and should be best handled by the notification script
itself (have it queue up messages outside of certain time periods)
However it doesn't seem productive to get spammed with SMS messages at 7 AM
if a problem has been going on all night.
In this case I would recommend setting up a few escalation definitions and
using the optional escalation_period directive to apply them to different
time periods. So you'd have one escalation definition (with interval etc)
for the night, one for morning + evening and one for normal hours. See
http://nagios.sourceforge.net/docs/3_0/escalations.html for more info on
this.
Using escalations in this way also lets you for example have a group of
"critical" servers/services that will spam you via SMS if they're down, and
have everything else go to your normal email box.
Regards,
Martin Melin
On Tue, Nov 3, 2009 at 7:26 PM, Justin T Pryzby <justinp at norchemlab.com>wrote:
> On Tue, Nov 03, 2009 at 07:04:54PM +0100, Martin Melin wrote:
> > Using two contacts, one for email and one for SMS, will let you get SMS
> > notifications if a problem that occurred during the night still isn't
> > resolved by 7 am (should be a simple escalation definition + timeperiod
> per
> > contact)
> Is it possible to get the behavior of a "queue" which is emptied at
> 7am (for better or worse)?
>
> . SMS from earlier than 7am should be sent *at* 7am and not at 7:15
> or 7:30 or ..
> . it shouldn't be necessary to implement this as a 1/minute check
> sending thousands of emails between 3am and 7am.
>
> Justin
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091103/ab9db70d/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list