Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We use nagios to monitor our server farm, and generally it works great. From time to time, though, the host where nagios runs loses connectivity for a couple of minutes, which makes nagios believe that all servers and services it monitors are down. The result is hundreds of alert mails, shortly followed by hundreds of recovery mails.

Is there any way to configure nagios in such a way that it tests its own connectivity before releasing an avalanche of alert mails?

share|improve this question

Yes, you can set parents and childs. If a parent is down, no notification about the child is given. You do need to set the timings properly though (in generic_service and generic_host or whatever templates you use), because when the services are no longer available, it needs to have decideded the parent is down before it would send notifications out for those services.

What I did, is this:

# ISP gateway (first in traceroute)
define host {
        host_name   kpn-gateway
        alias       KPN Gateway
        use         generic-host
        notification_period  never
        parents     experia

# gateway in datacenter
define host {
        host_name   duocast-gateway
        alias       Duocast gateway
        use         generic-host
        parents     kpn-gateway
        contact_groups bla

# one of the hosts in datacenter.
define host {
        host_name   brick
        address     a.b.c.d
        use         generic-linux-host
        parents     duocast-gateway
        contact_groups geborsteldstaal
share|improve this answer
Thanks, this looks like a good plan. I'll try it out on our setup. – Benjamin Wohlwend Jun 19 '12 at 9:05

Your Answer


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.