Page 1 of 1

host/service dependencies.

Posted: Sat May 28, 2011 8:01 am
by ormsbeec
Hello All, Im using the latest nagiosxi if that matters, but can someone give me some kind of example config of how to make all of a hosts service checks dependent on the host being up?

Currently when a host is down all my checks (active nrpe checks) for that hose show up as unable to connect to host. I don't want to bother checking the services if I can't even reach the host.. Im not sure how to configure that and the documentation leaves a little to be desired imo.

Re: host/service dependencies.

Posted: Tue May 31, 2011 10:21 am
by tonyyarusso
There's a decent discussion of this on http://monitoringtt.blogspot.com/2011/0 ... -host.html

Re: host/service dependencies.

Posted: Tue May 31, 2011 5:20 pm
by ormsbeec
So a custom event handler is the way to handle this? Sounds easy enough but it seems like this should be a configurable option from within nagios itself.

Re: host/service dependencies.

Posted: Wed Jun 01, 2011 9:25 am
by ormsbeec
One more thing, is this a good solution if I have over 2000 hosts with 4-5+ active checks each?

Re: host/service dependencies.

Posted: Wed Jun 01, 2011 9:36 am
by tonyyarusso
Yes, I believe this is the approach you would have to take to do this. I'd also like to see it as a built-in option, but that doesn't exist yet to my knowledge. As far as the scalability, that should be fine, since you're using CGI commands, not restarting the service.

Re: host/service dependencies.

Posted: Wed Jun 01, 2011 9:51 am
by ormsbeec
Awesome, Thanks for the help Tony!

Re: host/service dependencies.

Posted: Wed Jun 01, 2011 10:07 am
by tonyyarusso
Let us know if you have any further questions!