host dependencies configurations

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mariog
Posts: 3
Joined: Tue Dec 30, 2014 7:17 am

host dependencies configurations

Post by mariog »

Hello
excuse if my terminology is not correct

we need to disable a child host not return critical or unreacheable if the parent host is down.

we have some rodc controlers in africa connected to the ups ..the issue is that the ups is down very often.. so we need to have nagios configured that if the ups where a certain host is down.. then do not check anymore that host.. so it will appear as UP instead of down or unreacheable..

is there a way to do this with parent/relationship or with host dependencies.

thank you

Mario.
vnc786
Posts: 68
Joined: Thu Aug 29, 2013 8:45 am

Re: host dependencies configurations

Post by vnc786 »

you will need host dependency not parent/child

https://assets.nagios.com/downloads/nag ... ncies.html
Host Dependencies

As you'd probably expect, host dependencies work in a similiar fashion to service dependencies. The difference is that they're for hosts, not services.

Tip Tip: Do not confuse host dependencies with parent/child host relationships. You should be using parent/child host relationships (defined with the parents directive in host definitions) for most cases, rather than host dependencies. A description of how parent/child host relationships work can be found in the documentation on network reachability.

Here are the basics about host dependencies:

A host can be dependent on one or more other host
Host dependencies are not inherited (unless specifically configured to)
Host dependencies can be used to cause host check execution and host notifications to be suppressed under different circumstances (UP, DOWN, and/or UNREACHABLE states)
Host dependencies might only be valid during specific timeperiods
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: host dependencies configurations

Post by hsmith »

Thank you @vnc786. Let us know if you have additional questions, @mariog.
Former Nagios Employee.
me.
Locked