Service Escalation

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jvdvyver
Posts: 2
Joined: Wed May 02, 2012 4:15 am

Service Escalation

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Service Escalation

Post 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.
jvdvyver
Posts: 2
Joined: Wed May 02, 2012 4:15 am

Re: Service Escalation

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Service Escalation

Post 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.
Locked