Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

This question already has an answer here:

I have three DNS services, each on different hosts configured in Nagios. Each service notifies me whenever it is failing (DNS on host A down).

Is it possible to configure Nagios so that I'm only getting a (customized) notification when all three DNS services are down via pager (DNS is not working) and a mail in case only a single service goes down (DNS on host A down).

The only way I see how I could achieve something like this is with service dependencies, which are cumbersome to use. They also do not have their own notifications.

How would you do that?

share|improve this question

marked as duplicate by Cristian Ciupitu, mdpc, Jenny D, Tom O'Connor May 14 '14 at 9:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

How about check_cluster Nagios plugin? With it you can set DNS service state to warning if only one node is down and error if everything goes down, for example.

share|improve this answer
That's much more like it - +1 from me! – MadHatter May 13 '14 at 12:44
Thank you, sir. :) – Janne Pikkarainen May 13 '14 at 12:48
I think that's gonna do exactly what I want.. Thank you! :) – user211195 May 13 '14 at 12:56
Then mark my answer as accepted, please. :) – Janne Pikkarainen May 13 '14 at 13:00
This is exactly what check_multi is for. check_cluster can do it, but it's very clumsy. Just search Serverfault for "check_multi". It's been answered. – Keith May 13 '14 at 17:35

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