[Nagios-devel] Q: Service Escalation Recovery Notifications.

Patrik Båt pb at osix.eu
Wed May 25 16:46:39 CEST 2011


# SMS
define serviceescalation {
        host_name *
        service_description *
        first_notification 2
        last_notification 3
        notification_interval 0
        contacts oncall
	}

define hostescalation {
        host_name *
        first_notification 2
        last_notification 3
        notification_interval 0
        contacts oncall
	}

# MAIL

define serviceescalation {
        host_name *
        service_description *
        first_notification 1
        last_notification 1
        notification_interval 10 
        contacts sysadmin.reports
	}

define hostescalation {
        host_name *
        first_notification 1
        last_notification 1
        notification_interval 10
        contacts sysadmin.reports
	}

# Recovery

define serviceescalation {
        host_name *
        service_description *
        first_notification 2
        last_notification 3
        notification_interval 0
        contacts sysadmin.reports
        escalation_options r
}

define hostescalation {
        host_name *
        first_notification 2
        last_notification 3
        notification_interval 0
        contacts sysadmin.reports
        escalation_options r


This is working for me, to notify both via sms and email. eg 2 contacts.



On Fri, 2011-05-20 at 22:22 +0200, Andreas Ericsson wrote:
> On 05/20/2011 06:05 PM, Max Schubert wrote:
> > Hi,
> > 
> > On Thu, May 19, 2011 at 10:10 AM, Andreas Ericsson<ae at op5.se>  wrote:
> >> On 05/19/2011 03:32 PM, Paul M. Dubuc wrote:
> >>> OK, but wouldn't it be nice if all contacts who got an error notification were
> >>> able to get the recovery message instead of just the one last notified?  Is
> >>> there any way to do that?  Setting up an explicit serviceescalation for
> >>> recovery notifications doesn't seem to work.
> >>>
> >>
> >> Max Schubert is working on a patch that does something similar to that.
> >> If he doesn't complete it, I might take a look at adding it myself.
> > 
> > I will send out my partial patch to the list sometime today along with
> > an explanation of my thinking / approach for it - feel free to use it
> > or discard it as you see fit :)!
> > 
> 
> Rest assured, I will ;)
> 
> Our customers have raised voices about simplifying the notification
> logic though. This discussion actually spawned that voice-raising,
> which is nice. Either way, it might be that I end up either taking
> your patch or implementing the "everyone who gets problem notifications
> also get recovery notifications".
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110525/c48df014/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
-------------- 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 Developers mailing list