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-us...@roth.lu]
Sent: 03 May 2012 16:45
To: nagios-users@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@lists.sourceforge.net>
Nagios-users@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
------------------------------------------------------------------------------
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/
_______________________________________________
Nagios-users mailing list
Nagios-users@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