<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000099">
The bulk of my systems are behind one of three switches. I just went
through my hosts.cfg file and added the "parents" line and appropriate
switch name for each, but the host dependencies aren't showing up. I do
use a host template for most of the servers and then other specifics.
Below is a sample of what's defined. Initially I thought the issue was
the Nagios server being in the same switch as one of the switches, but
the last entry below shows a switch defined as a parent and the Nagios
server is not behind the switch (Nagios is behind flscrb234srvsw5, the
last host is behind flscrb234srvsw6). The VLAN is the same for all the
hosts in the three switches... all hosts operate on 10.1.1.x/16 or
10.1.80.x/16 which is all a single VLAN. I'd appreciate any thoughts on
why it might not be working:<br>
<br>
# -- Network Switches<br>
define host {<br>
name Network-Switches<br>
register 0<br>
<br>
hostgroups network-switches<br>
check_command check-host-alive<br>
icon_image cisco.jpg<br>
icon_image_alt Cisco Device<br>
max_check_attempts 3<br>
check_period 24x7<br>
contact_groups networkadmins<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options d, u, r, f, s<br>
}<br>
<br>
define host {<br>
host_name flscrb234srvsw5<br>
use Network-Switches<br>
alias 4948-5 - B234<br>
address 10.100.0.45<br>
}<br>
<br>
define host {<br>
host_name flscrb234srvsw6<br>
use Network-Switches<br>
alias 4948-6 - B234<br>
address 10.100.0.46<br>
}<br>
...<br>
##### Linux Hosts #####<br>
# -- Linux host<br>
define host {<br>
name Linux-Servers<br>
register 0<br>
<br>
hostgroups linux-servers<br>
check_command check-host-alive<br>
icon_image tux.png<br>
icon_image_alt Linux Server<br>
max_check_attempts 3<br>
check_period 24x7<br>
contact_groups unixadmins<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options d, u, r, f, s<br>
}<br>
<br>
define host {<br>
host_name aten<br>
use Linux-Servers<br>
alias Aten (SLES)<br>
address 10.1.80.3<br>
parents flscrb234srvsw5<br>
}<br>
...<br>
define host {<br>
host_name delos<br>
use Linux-Servers<br>
alias Delos (CentOS)<br>
address 10.1.1.93<br>
parents flscrb234srvsw6<br>
}<br>
<br>
<br>
Reading configuration data...<br>
<br>
Running pre-flight check on configuration data...<br>
<br>
Checking services...<br>
Checked 673 services.<br>
Checking hosts...<br>
Checked 168 hosts.<br>
Checking host groups...<br>
Checked 23 host groups.<br>
Checking service groups...<br>
Checked 36 service groups.<br>
Checking contacts...<br>
Checked 9 contacts.<br>
Checking contact groups...<br>
Checked 12 contact groups.<br>
Checking service escalations...<br>
Checked 0 service escalations.<br>
Checking service dependencies...<br>
Checked 30 service dependencies.<br>
Checking host escalations...<br>
Checked 0 host escalations.<br>
<b>Checking host dependencies...<br>
Checked 0 host dependencies.</b><br>
Checking commands...<br>
Checked 58 commands.<br>
Checking time periods...<br>
Checked 5 time periods.<br>
Checking for circular paths between hosts...<br>
Checking for circular host and service dependencies...<br>
Checking global event handlers...<br>
Checking obsessive compulsive processor commands...<br>
Checking misc settings...<br>
<br>
Total Warnings: 0<br>
Total Errors: 0<br>
<br>
Things look okay - No serious problems were detected during the
pre-flight check<br>
<br>
<pre class="moz-signature" cols="72">--
A. Davis
Email: <a class="moz-txt-link-abbreviated" href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
</pre>
</body>
</html>