[Nagiosplug-devel] Plugin output format

Holger Weiss holger at CIS.FU-Berlin.DE
Thu Aug 2 20:07:58 CEST 2007


* Matthias Eble <matthias.eble at mailing.kaufland-informationssysteme.com> [2007-08-02 19:33]:
> >> The messages functions seem to be neat.
> >
> > You mean N::P's add_message() and check_messages() and the question is
> > whether similar functions should be added to the C library?
>
> Yes. But they are marked as subject of change. Maybe we should start a 
> general discussion about how output functions could look like and then 
> implement them for the c plugins, too.

Sure.  The patch I posted was sort of meant as a request for discussing
just that :-)

> Your verbosity solution can be applied additionally, but to use message 
> functions like in N::P the entire plugin needs to be altered.. *sigh*

Why can these functions not be applied additionally?  I mean, using them
is purely optional with N::P, too.  If they can be useful for C plugins
I surely wouldn't mind implementing them, but there's no real need to
saddle oneself with converting existing code to use new convenience
functions, is there?

Besides, I would have guessed that there are not _that_ many places
where I'd replace die() calls with such a function pair within our C
plugins, as in many cases the plugins can/should exit immediately in
case of problems anyway (as opposed to "collecting" problems with
add_message() and continuing the program flow as usual), no?  But I
might well be just overlooking some uses!

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE




More information about the Devel mailing list