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.

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 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.

1 Answer 1

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
1  
That's much more like it - +1 from me! –  MadHatter May 13 at 12:44
    
Thank you, sir. :) –  Janne Pikkarainen May 13 at 12:48
    
I think that's gonna do exactly what I want.. Thank you! :) –  user211195 May 13 at 12:56
1  
Then mark my answer as accepted, please. :) –  Janne Pikkarainen May 13 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 at 17:35

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