Nagios should show dependency failure
Andreas Ericsson
ae at op5.se
Tue Nov 23 15:17:13 CET 2004
Leonardo Henrique Machado wrote:
> my dependecy file is so complex that I need about 5 splits in my vim
> (using a 19'' monitor screen) to understand what I have done.
>
What an overzealous configuration. I hope you're talking about
servicedependencies, otherwise you've badly misunderstood the concept of
parents and unreachable hosts.
> It would help us a lot if, in some way, nagios could show us a dependecy
> tree. Or *just* show us a message (on Web or in LOG file) explaining that
> the service was not checked due to a dependecy on host X.
>
> Tha would help a lot debugging dependecy problems.
>
That's what --enable-DEBUG4 is there for. Use it and run Nagios in
debug-mode when debugging (obviously).
Otherwise you could always hack up some tool to calculate dependencies
for you. I would suggest writing it in C and utilizing code from Nagios
(you'll be wanting common/objects.c and xdata/*.c and all the header
files they use).
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
More information about the Developers
mailing list