Escalating notifications

Edwin Zoeller Edwin.Zoeller at ama-assn.org
Fri Apr 1 17:03:06 CEST 2011


This is also what I am looking for. Where would you put the separate escalation? 

-----Original Message-----
From: Paul M. Dubuc [mailto:work at paul.dubuc.org] 
Sent: Friday, April 01, 2011 8:49 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Escalating notifications

Patrik Båt wrote:
> Hello mailinglist!
>
> im trying to get a notification like this:
>
> in first hardstate, email staff. (notication 1)
>
> at the other notification (notification 2) im sending a SMS to the 
> oncall.
>
> But the problem is, that on recovery im only getting a SMS due to the 
> sms escalation is in use.
>
> Anyone have any good way to get this to work?
>
> 1. MAIL Problem
> 2. SMS Problem
>
> On recovery:
>
> 1. Mail Recovery
> 2. SMS Recovery
>
> with 2 escalations, i get like this:
>
> 1. Mail problem
> 2. Mail problem, SMS problem
>
> recovery:
>
> 1. SMS recovery.
>
> Config:
>
> # 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
> 	}
>
> i have tried with diffrent last_notifications and so on, but with no 
> luck.
>
> Regards Patrik BÃ¥t.
>

Try using a separate escalation for the recovery events.  The recovery event is the last numbered event so it's hard to catch without a specific escalation.  Example:

define serviceescalation {
	host_name *
	service_description *
	first_notification 1
	last_notification 0
	notification_interval 0
	contacts sysadmin.reports,oncall
	escalation_options r
}

define hostescalation {
	host_name *
	first_notification 1
	last_notification 0
	notification_interval 0
	contacts sysadmin.reports,oncall
	escalation_options r
}


------------------------------------------------------------------------------
Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
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

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
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