Page 1 of 1

Network Status Maps -Dependencies not displayed

Posted: Tue Feb 09, 2010 7:13 pm
by fkroeger
I have setup several hosts and set the dependencies via the Core Config Manager. The hostdependencies.cfg appears to update OK - (attached below).
However, when I select the Network Status Map, the dependencies are not displayed. They are all shown as coming from the root of Nagios.
Is there something else I need to do to display these Parent/Child relationships?

regards... Fred

Code: Select all

define hostdependency {
       dependent_host_name               hostb
       host_name                                hosta
       inherits_parent                          1
}

define hostdependency {
       dependent_host_name               hostc
       host_name                                hostb
       inherits_parent                          1
}

define hostdependency {
       dependent_host_name               hostd
       host_name                                hostc
       inherits_parent                          1
}

Re: Network Status Maps -Dependencies not displayed

Posted: Wed Feb 10, 2010 11:46 pm
by admin
Hi Fred -

Dependencies aren't what you're looking for to accomplish this. What you need to do is this...

When you're editing a host in the Nagios Core Config Manager (NagiosQL), specify the parent host in the "Parents" field. The parent relationship is what determines how hosts are "connected" to each other, and this will be reflected in the network status map when you apply the configuration.

Re: Network Status Maps -Dependencies not displayed

Posted: Sun Feb 14, 2010 8:38 pm
by fkroeger
Resolved - thanks - that fixed the dependancy issue.
I saw the Host Dependency tab in the Advanced section of Core Config Manager and thought this was a great way to setup all the dependecies : ie: if I setup a hostgroup as being dependent on a particular host, then I thought that just by adding another host to that hostgroup would setup the dependency - maybe I was tryign to be too clever!
So what do I achieve then by using this Host or Service dependency in the advanced section?

Regards... Fred