Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got a service in Nagios that checks how much disk space is used on a server.

When over 80% is used, the service is in a warning state. When it's over 97% it's considered critical.

When the service is in warning I want to send an alert once a day (notification_interval 1440). When the service is critical I want to send an alert every two hours (notification interval 120).

How do I set this up?

Is it possible to set this up in one service or do I need to define two services, one that sends alerts for warning and another that sends alerts for critical?

Thanks.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Define a serviceescalation with notification_interval set to 120 when the service is in CRITICAL state:

define serviceescalation{
    host_name               xx
    service_description     disk_free
    notification_interval   120
    .
    .
    escalation_period       24x7
    escalation_options      c
    }
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.