Service Escalation issue

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Service Escalation issue

Postby capriguy84 » Tue Jun 11, 2013 2:35 pm

I am trying to implement a service notification with following requirements.

1) Notify immediately "contact1"when w,c,u states is detected the FIRST time and send only ONE notification.
2) If not ACK'd in 5mins, escalate by sending only ONE notification to "contact2". And all future notifications should not be sent to any of them.

What I do not understand from Nagios documentation is, how is there two seriviceescalations defined without actually defining service. Also

Code: Select all
define service{
        name                                     app-service
        active_checks_enabled            1
        obsess_over_service               0
        notifications_enabled              1
        event_handler_enabled           1
        retain_status_information       1
        retain_nonstatus_information  1
        check_period                          24x7
        max_check_attempts              1                    ; Number of times to check before entering HARD State
        normal_check_interval            10                   ; When OK, check every 10 mins
        retry_check_interval               5                    ; When not OK, check every 5 mins
        first_notification_delay           0                    ; Delay in sending first notification
        notification_interval               5                    ; Time between notifications and is used for escalation
        notification_period                 24x7
        register                                 0

define service{
        use                                     app-service
        hostgroup_name                  app-alert-hosts
        service_description              Market Alert
        servicegroups                      market-alerts
        contact_groups                    contact1
        notification_options             w,c,u

define serviceescalation{
        hostgroup_name                  app-alert-hosts
        service_description             Market Alert
        first_notification                 2
        last_notification                  2
        notification_interval            0
        contacts                             contact2
        escalation_options              w,c
        escalation_period               24x7
Posts: 10
Joined: Wed Mar 27, 2013 2:27 pm

Re: Service Escalation issue

Postby scottwilkerson » Tue Jun 11, 2013 6:49 pm

I believe this looks correct to me, what unexpected behavior are you seeing?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
DevOps Engineer
Posts: 18967
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Return to Community Support

Who is online

Users browsing this forum: No registered users and 56 guests