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.

Currently I have Nagios up and running and it notifies me by email of events.

I would like to know the configuration change that I have to make, so that I will only be notified 1 time of a server going down and then only another email when it is up again.

At the moment when I server is down, I get an email every 30 minutes telling me that it is down, and I am only interested in knowing when it is up again (recovery).

I would like to know the change that I have to make in the configuration files manually. I don't use and don't want to use a fancy front-end.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

In your host definition, set notification_interval to 0:

define host{
    use                     generic-host
    host_name               example
    address                 example.com
    notification_interval   0
    }

You can see the available configuration options for a host here: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host

share|improve this answer
add comment

You should log into the nagios interface and acknowledge the outage this should stop subsequent alerts, remembering to clear this once service has been restored, alternatively if this is scheduled maintenance, place the service / server in scheduled downtime.

Setting the alert me only once, is not what I would call best practice, as you are telling the system to assume you got the first alert, and not to send subsequent alerts, which is a perfect world would be fine, however this is not always the case such as a failed email send due to temporary smtp outage or temporary sms gateway outage.

share|improve this answer
    
I would agree with that, you should never assume the relevant people have been notified just because and email has been sent. –  beakersoft Nov 18 '10 at 16:10
    
Thank you for your advice/warning –  ICTdesk.net Nov 19 '10 at 9:47
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.