Nagios retention problem.
Ignacio Goyret
igoyret at alcatel-lucent.com
Thu Nov 20 20:32:53 CET 2008
At 12:52 PM 11/20/2008 +0100, Markus.Almroth at teliasonera.com wrote:
>I *think* I got the logit() call right. :-)
FYI, instead of this:
>+ char errormsg[40];
>+ int errorcount=0;
> ....
>+ sprintf(errormsg, "Error when closing retention
>tempfile: %s", strerror(errno));
>+ logit(NSLOG_RUNTIME_ERROR,TRUE,errormsg,errno);
use something like this:
>+ logit(NSLOG_RUNTIME_ERROR,TRUE,
>+ "Error when closing retention tempfile: %s", strerror(errno));
much safer!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
More information about the Developers
mailing list