Re: [Nagios-devel] Nagios should show dependency failure

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios should show dependency failure

Post by Guest »

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 [email protected]
OP5 AB www.op5.se
Lead Developer





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked