Page 1 of 1

Service Escalation

Posted: Wed May 02, 2012 5:30 am
by jvdvyver
Hi

I have a server (XServer) with about 40 services on it.

I have the following serviceescalation defined

Code: Select all

define serviceescalation {
        host_name               XServer
        service_description     *
        first_notification      1
        last_notification       3
        notification_interval   30
        escalation_period       24x7
        escalation_options      c,r
        contact_groups          emergency
        contacts                support-phone
}
I want to receive an message on my support-phone when the service goes into critical and when it goes out of critical. My problem is with the notification counters. Sometimes it works and sometimes not. It looks to me if a service goes into warning and stays there for a few notifications and then move to critical, then I do not get messages.

Any ideas?

Re: Service Escalation

Posted: Wed May 02, 2012 10:29 am
by agriffin
This is the expected behavior for the options you set. You'll only receive your messages if the service enters a critical state before 3 notifications have gone out. To get the behavior you want, rather than defining an escalation, you could just define a contact that only receives critical and recovery alerts.

Re: Service Escalation

Posted: Thu May 03, 2012 12:12 am
by jvdvyver
Thank you, but how do I stop it from sending me more that 3 critical messages? If not with first_notification and last_notification?

I think that I did not explain good enough the behavour I'm looking for.

I want to receive 3 messages when a service goes into critical and 1 messages when it goes out of critical (this can be to warning or recovery). Is this possible? How do I cofigure this, with what paramaters and how many escalations?

Re: Service Escalation

Posted: Fri May 04, 2012 10:11 am
by agriffin
I don't think there is a way to do that using a vanilla nagios core. You will likely need to modify the source to avoid the unwanted behavior from your first post, sorry.