Smart thinking there, works perfectly!

Thanks alot!

On Fri, 2011-04-01 at 09:49 -0400, Paul M. Dubuc wrote:
> 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
> }
> 

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
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
[email protected]
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

Reply via email to