[Nagiosplug-devel] printf calls in library functions
Matthias Eble
matthias.eble at mailing.kaufland-informationssysteme.com
Sun Jul 22 21:38:42 CEST 2007
> How problematic is it? Nagios and NRPE doesn't care about stderr. Also
> it's easy to add a 2>/dev/null when running it from another script/plug-in.
>
> For the solutions, can't we just redirect STDERR to /dev/null when the
> verbose level is 0? (That would require adding the -v switch to plugins
> that don't have one yet...).
We could do so, if all output came on stderr. As far as I've seen, some
output is even explicitely put on stdout like:
ERR_print_errors_fp (stdout);
And printfs like in the tracker aren't written to stderr, either.
What we could do is that we could generally print library output to
stderr. But that might confuse people seeing different output in the gui
and the shell.
Matthias
More information about the Devel
mailing list