Inheritence and host dependencies

Marc Powell marc at ena.com
Sat Jan 20 00:45:59 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic
> Sent: Friday, January 19, 2007 5:25 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Inheritence and host dependencies
> 
> hey guys
> 
> I have nagios 2.4 on my linux
> 
> i also have 54 host dependencies set up the follwing way
> 
> define hostdependency{
>  host_name   parent
>  dependent_host_name  child1,child2,child3
>  notification_failure_criteria d,u ; These are the criteria for which
> notifications will be suppressed
>  }
> 
> parent is my master hostname and child1 and child2 and child3 are are
the
> dependents as you can see
> 
> Now what I read from the manual if "parent" goes down then logically
> child1, child2 and child3 are also down thats what i see on my network

It sounds to me that what you _really_ want is to use the 'parents'
directive in your child host{} definitions, not host dependencies.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
http://nagios.sourceforge.net/docs/2_0/networkreachability.html

>From the Host Dependencies docs as well --

"BEWARE! 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."

--
Marc


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list