Re: [Nagios-devel] Nagios retention problem.

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 retention problem.

Post by Guest »

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]
Locked