parent/child setup not working
Patrick Morris
patrick.morris at hp.com
Fri Jan 5 23:27:36 CET 2007
On Fri, 05 Jan 2007, David Miller wrote:
> Hi;
>
> I'm not sure what I'm doing wrong.
>
> Running nagios 2.5 on debian-stable. I have the nagios server in one
> data center monitoring 30ish servers in another data center.
>
> In the hosts.cfg file I have a gateway (firewall) defined:
>
> define host {
> use generic-host ; Name of host template
> to use
> host_name pix
> alias PIX
> address x.y.z.2
> check_command check-host-alive
> max_check_attempts 1
> notification_interval 1
> notification_period 24x7
> notification_options d,u,r
> }
>
>
> I then use that as a parent to all the hosts I want to monitor in the
> remote data center. Those have host entries like this;
>
>
> define host {
> use generic-host ; Name of host template
> to use
> host_name logweb1
> alias Logweb1
> address logweb1.foo.com
> parents pix
> max_check_attempts 1
> active_checks_enabled 0
> notification_interval 1
> notification_period 24x7
> notification_options d,r
> }
>
> As I read the documentation, when nagios detects that host "pix" is down
> that it won't check or report on host logweb1.
>
> If the network connection is broken, however, by deleting the default
> route, I get three messages that the pix is down that look like this:
[snip]
That config looks OK, unless I'm missig something.
My guess would be that either the config hasn't been reloaded, or you've
got a couple copies of Nagios running, and one is still using the old
config.
-------------------------------------------------------------------------
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