[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

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

Post by Guest »

Dear group,

I have a problem parsing the Nagios performance data and wonder if any
member can suggest a solution. These have the default file names
'serviceperf.log' and 'hostperf.log'.

I wish to parse and delete these every minute. But I cannot delete them
as Nagios holds the file open. Stopping and starting Nagios every
minute is not really an option.

Really I want to pass a command to Nagios to request the deletion of
these files. However, if there is a delay between Nagios getting the
command, and Nagios deleting the files, information will be lost.
Because my program is sitting waiting for the deletion without parsing.

Ideally, I would want Nagios to write to a tmp file, then on getting a
command, close the file, move it to the true file, and open up a new tmp
file for it's self. Or get Nagios to continuously close the file after
every write, making it delete-safe. But this might effect performance??

If any member has any ideas, I would be extremely interested.

Kind regards, Ben.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked