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.
Notification interval for Warning and Critical incidents
Re: Notification interval for Warning and Critical incidents
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.
Let us know if this helped.
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,
}Be sure to check out our Knowledgebase for helpful articles and solutions!