statusmap.cgi not showing dependencies properl y
atonns at mail.ivillage.com
atonns at mail.ivillage.com
Tue Sep 10 18:57:32 CEST 2002
ok. i have answered my own question.
it seems that statusmap.cgi does not draw dependencies (ie: lines to from
host to host) based upon "hostdependency" object definitions. INSTEAD, it
uses the "parents" directive that is part of the "host" object definition.
aren't "parents" and "hostdependency"s now redundant? in what case would you
have a parent that wasn't a hostdependency? in looking at the code, i can
agree it might not be a trivial change, but should this fact be documented
somewhere?
--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
-----Original Message-----
From: atonns at mail.ivillage.com [mailto:atonns at mail.ivillage.com]
Sent: Friday, September 06, 2002 11:32 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] statusmap.cgi not showing dependencies properly
i'd like to know if the statusmap.cgi will understand the alternate method
i'm using for configs and map the dependencies properly.
basically, each host has one line in the main nagios.cfg:
cfg_dir=/usr/local/nagios/etc/hosts/firewall
cfg_dir=/usr/local/nagios/etc/hosts/testhost
in each directory there is a host.cfg file that has something like this (as
apropriate):
define host{
use generic-host ; Name of host
template to use
host_name testhost
alias Test for Nagios
address testhost.foobar.com
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period workhours
}
define hostdependency{
host_name firewall
dependent_host_name testhost
notification_failure_criteria d,u
}
also in the appropriate directories are seperate config files for each
service (http.cfg, ping.cfg, etc. etc.)
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.
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.
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".
thanks in advance for any/all help.
--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020910/30feefe4/attachment.html>
More information about the Users
mailing list