Re: [Nagios-devel] Deletion of the performance data log files.

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] Deletion of the performance data log files.

Post by Guest »

Andreas Ericsson wrote:

>> Ben Clewett wrote:
>>
>> I wish to parse and delete these every minute.

> You can empty it without deleting it.
> simply 'echo -n > hostperf.log ; echo -n > serviceperf.log'.

Yes, nagios seems happy with this. At least on an ext3 Linux file system.

I presume as well that this method is the same as:

fclose(fopen("serviceperf.log", "w"));

Anyway, this is by far the simplest behavior and I don't need a patch on
Nagios. In Wins, will have to work on other method. I'll have to try
and get a patch for Nagios and change this method for some later date.
(As suggested by Steve Hanselman.)

Thanks and regards, Ben.







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Ben@clewett.org.uk
Locked