Service Escalations and notification_interval

Brian Snead BSnead at infosysnetworks.com
Wed Jul 23 16:14:18 CEST 2003


The reason it happens every five minutes is because notifications don't occur unless a service check is performed. Therefore, nothing has changed to kick off a notification until the check is performed.

You asked if you could have different notification intervals for the same service. I think you can if you use host group notifications and have the service belong to two hostgroups.

Hope this helps, I am struggling with controlling notifications right now myself.

Brian.

-----Original Message-----
From: Sam Stickland [mailto:sam_ml at spacething.org]
Sent: Wednesday, July 23, 2003 9:19 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Service Escalations and notification_interval


Hi,

I've written a couple of programs - one that does notification via MSN, and
one via SMS.

I used the following the service-escalation configuration on a service:

define serviceescalation {
 host_name                 myhost
 service_description       myservice
 first_notification        1
 last_notification         0
 contact_groups            admins-msn
 notification_interval     1
}

define serviceescalation {
 host_name                 myhost
 service_description       myservice
 first_notification        1
 last_notification         0
 contact_groups            admins-sms
 notification_interval     120
}

Now I kinda wish that I'd read the documentation a little more carefully ;)
It was meant to notify the admins via MSN regulary, but only send out a
notification via SMS once every two hours. But of course, what actually
happens is that it uses the smallest notification_interval for both the
contact-groups. (Just as well I was only testing this to my phone!).

So I have two questions:

a) Is it possible to define two, overlapping, service escalations for one
service, with different notification_intervalS? Or will I have to duplicate
the service defination?

b) Why is it that the notifcations occured once every five minutes, not once
every minute as the notification_interval suggests? Is this a multiplier of
some other value? A look at services.cfg suggests it's
'notification_interval x normal_check_interval' since normal_check_interval
is the only property with a value of five.

Sam



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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