Page 1 of 2

Dependencies!

Posted: Tue May 27, 2014 9:18 am
by kimjaggi
I want to setp notification for hosts and services but I want to notify as per the dependencies.
For example if the host is down tehn I dont want to get notifications from individual services. I should get only email that HOST is Down.

Anotehr example is, I have stack of 3 switches where switch 2 and 3 is connected with switch 1. So if switch 1 is down, it is ofcourse that 2 and 3 is down as well, so I shouldnt be notofied for that.

Any idea, how oculd this be configured?

Re: Dependencies!

Posted: Tue May 27, 2014 9:51 am
by eloyd
if the host is down tehn I dont want to get notifications from individual services. I should get only email that HOST is Down
Dependencies not required. Nagios does this for you. If the service is down, it checks the host. If the host is down, it assumes that all services on the host are down.
So if switch 1 is down, it is ofcourse that 2 and 3 is down as well, so I shouldnt be notofied for that
You want to define parents in your host configuration. If switch 1 is the parent of switch 2, then that means switch 1 must be up to be able to get to switch 2. So if switch 1 is down, Nagios won't even check switch 2.

Re: Dependencies!

Posted: Tue May 27, 2014 10:04 am
by scottwilkerson
Thx Eric!

Re: Dependencies!

Posted: Tue May 27, 2014 10:16 am
by eloyd
No problem. I figured after eight years or so, I should start answering questions and earn my Nagios Achievement Badge. :-)

Re: Dependencies!

Posted: Tue May 27, 2014 1:32 pm
by sreinhardt
Ah, going for some MVP are we? Nice to have you...back? :D

Back on topic, kim let us know if that works for you, eloyd is spot on though!

Re: Dependencies!

Posted: Wed May 28, 2014 4:04 am
by kimjaggi
Thanks for the reply.
You want to define parents in your host configuration. If switch 1 is the parent of switch 2, then that means switch 1 must be up to be able to get to switch 2. So if switch 1 is down, Nagios won't even check switch 2.
Could you please tell me how can I do this.. Or do we have any official documentation for this.

I checked online:-http://community.nagios.org/2009/08/23/ ... -required/

Do you think the info in this link is right?

Re: Dependencies!

Posted: Wed May 28, 2014 7:39 am
by eloyd
You really should bookmark the Nagios Core documentation:

http://nagios.sourceforge.net/docs/3_0

What you are looking for is the "parent" configuration field at http://nagios.sourceforge.net/docs/3_0/ ... .html#host

Re: Dependencies!

Posted: Wed May 28, 2014 4:38 pm
by tmcdonald
Thank you eloyd as usual!

Re: Dependencies!

Posted: Mon Jun 02, 2014 8:12 am
by kimjaggi
Cool. Thanks for the help.

Re: Dependencies!

Posted: Mon Jun 02, 2014 9:20 am
by tmcdonald
Is it safe to close this thread as solved?