<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>statusmap.cgi not showing dependencies properly</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>i'd like to know if the statusmap.cgi will understand the alternate method i'm using for configs and map the dependencies properly.</FONT></P>
<P><FONT SIZE=2>basically, each host has one line in the main nagios.cfg:</FONT>
<BR><FONT SIZE=2>cfg_dir=/usr/local/nagios/etc/hosts/firewall</FONT>
<BR><FONT SIZE=2>cfg_dir=/usr/local/nagios/etc/hosts/testhost</FONT>
</P>
<P><FONT SIZE=2>in each directory there is a host.cfg file that has something like this (as apropriate):</FONT>
<BR><FONT SIZE=2>define host{</FONT>
<BR><FONT SIZE=2> use generic-host ; Name of host template to use</FONT>
<BR><FONT SIZE=2> host_name testhost</FONT>
<BR><FONT SIZE=2> alias Test for Nagios</FONT>
<BR><FONT SIZE=2> address testhost.foobar.com</FONT>
<BR><FONT SIZE=2> check_command check-host-alive</FONT>
<BR><FONT SIZE=2> max_check_attempts 10</FONT>
<BR><FONT SIZE=2> notification_interval 480</FONT>
<BR><FONT SIZE=2> notification_period workhours</FONT>
<BR><FONT SIZE=2> }</FONT>
</P>
<P><FONT SIZE=2>define hostdependency{</FONT>
<BR><FONT SIZE=2> host_name firewall</FONT>
<BR><FONT SIZE=2> dependent_host_name testhost</FONT>
<BR><FONT SIZE=2> notification_failure_criteria d,u</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>
<P><FONT SIZE=2>also in the appropriate directories are seperate config files for each service (http.cfg, ping.cfg, etc. etc.)</FONT>
</P>
<P><FONT SIZE=2>statusmap.cgi prints a nice picture, but it doesn't show that "testhost" depends on "router". it shows all hosts directly connected to the "nagios process" icon.</FONT></P>
<P><FONT SIZE=2>P.S. "testhost" is actually a virtual IP on "firewall" that is nat'd to testhost.nat.foobar.com using private 10.x.x.x addresses behind that firewall.</FONT></P>
<P><FONT SIZE=2>P.P.S. I only have 3 hosts currently configured. The host that runs nagios, "firewall" and "testhost". They are all shown as directly connected to "nagios process".</FONT></P>
<P><FONT SIZE=2>thanks in advance for any/all help.</FONT>
</P>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>"Computer science is as much about computers as</FONT>
<BR><FONT SIZE=2> astronomy is about telescopes" -- Edsger Dijkstra</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Anthony Tonns, UNIX Administrator - atonns@mail.ivillage.com</FONT>
</P>
</BODY>
</HTML>