Notification interval for Warning and Critical incidents

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Notification interval for Warning and Critical incidents

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification interval for Warning and Critical incidents

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked