Re: [Nagios-devel] Nagios retention problem.
Posted: Thu Nov 20, 2008 7:33 pm
At 12:52 PM 11/20/2008 +0100, [email protected] 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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
>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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]