notifications

FTL Nagios ftlnagios at gmail.com
Thu May 3 18:31:26 CEST 2012


Marki,

 

I use the following host and service escalations to do exactly that.

 

It makes the first notification a text and email and subsequent problem
alerts email only, then an email and SMS for recovery

 

Don't know if it's the right way to do it but it works fine for me

 

 

define hostescalation{

     host_name            ABC

     first_notification         1

     last_notification          4

     notification_interval      20

     contact_groups             Website Email

     escalation_options         d,r

     }

 

define hostescalation{

     host_name            ABC

     first_notification         1

     last_notification          1

     notification_interval      20

     contact_groups             Website sms

     escalation_options         d

     }

 

define hostescalation{

     host_name            ABC

     first_notification         1

     last_notification          4

     notification_interval      20

     contact_groups             Website sms

     escalation_options         r

     }

 

define hostescalation{

     host_name            ABC

     first_notification         5

     last_notification          0

     notification_interval      0

     contact_groups             Website Email

     escalation_options         d,r

     }

 

define hostescalation{

     host_name            ABC

     first_notification         5

     last_notification          0

     notification_interval      0

     contact_groups             Website sms

     escalation_options         r

     }

 

 

 

 

 

define serviceescalation{

     host_name            ABC

     service_description        SITE TRAWL

     first_notification         1

     last_notification          4

     notification_interval      20

     contact_groups             Website Email

     escalation_options         c,r

     }

 

define serviceescalation{

     host_name            ABC

     service_description        SITE TRAWL

     first_notification         1

     last_notification          1

     notification_interval      20

     contact_groups             Website sms

     escalation_options         c

     }

 

define serviceescalation{

     host_name            ABC

     service_description        SITE TRAWL

     first_notification         1

     last_notification          4

     notification_interval      20

     contact_groups             Website sms

     escalation_options         r

     }

 

define serviceescalation{

     host_name            ABC

     service_description        SITE TRAWL

     first_notification         5

     last_notification          0

     notification_interval      0

     contact_groups             Website Email

     escalation_options         c,r

     }

 

define serviceescalation{

     host_name            ABC

     service_description        SITE TRAWL

     first_notification         5

     last_notification          0

     notification_interval      0

     contact_groups             Website sms

     escalation_options         r

     }

 

 

-----Original Message-----
From: Marki [mailto:jm+nagios-users at roth.lu] 
Sent: 03 May 2012 16:45
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] notifications

 

 

C. Bensend <benny <at> bennyvision.com> writes:

 

> 

> 

> > I am using Nagios 3.3.1

> >

> > I have got notifications by SMS working now

> >

> > Is there a way of defining what notifications go to email, what go 

> > to SMS and what can go to both.

 

I personally would also find it interesting for SMS alerts only to notify a
critical state *once* (even if emails are sent repeatedly due to
notification_interval greater than 0). The SMS notifications obviously
should include a recovery message.

Not sure how to do this without setting up two completely separate service
checks...

 

 

----------------------------------------------------------------------------
--

Live Security Virtual Conference

Exclusive live event will cover all the ways today's security and 

threat landscape has changed and how IT managers can respond. Discussions 

will include endpoint security, mobile security and the latest in malware 

threats.  <http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/>
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________

Nagios-users mailing list

 <mailto:Nagios-users at lists.sourceforge.net>
Nagios-users at lists.sourceforge.net

 <https://lists.sourceforge.net/lists/listinfo/nagios-users>
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/20120503/6b45f9d2/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- 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