Page 1 of 1

Notification interval for Warning and Critical incidents

Posted: Wed Feb 26, 2020 6:22 pm
by anilgupta
I am looking to send email alert after 30 mins of interval in case the service goes in WARNING state.
However, alert should go every 10 mins if it is in CRITICAL state.

Please suggest on how to achieve this.

Re: Notification interval for Warning and Critical incidents

Posted: Thu Feb 27, 2020 10:07 am
by lmiltchev
There are two ways of achieving this.

1. You can create a duplicate service, so that you would end up with two services - one for warnings and one for critical states. These would be "normal" notifications.

2. You could use notification escalations, which in my opinion would be a better way of doing that. Here's an example of a service escalation, that should work for you.

Code: Select all

define serviceescalation {
    # config_name            warning
    host_name                myhost
    service_description      myservice
    contacts                 nagiosadmin
    first_notification       0
    last_notification        0
    notification_interval    30
    escalation_period        24x7
    escalation_options       w,
}

define serviceescalation {
    # config_name            critical
    host_name                myhost
    service_description      myservice
    contacts                 nagiosadmin
    first_notification       0
    last_notification        0
    notification_interval    10
    escalation_period        24x7
    escalation_options       c,
}
Let us know if this helped.