centreon / centreon-broker

A full-featured monitoring event broker, compatible with MySQL, RRDtool, Graphite and more
Apache License 2.0
37 stars 15 forks source link

Enhancement - Purge old RRD files #65

Open julienmathis opened 8 years ago

julienmathis commented 8 years ago

Come from https://github.com/centreon/centreon/issues/4715

Centreon Web version: 2.7.6 Centreon Engine version: 1.5.1 Centreon Broker version: 2.11.3

Hello,

Can you add a purge of old RRD files?

If I delete services, I can see their RRD files in /var/lib/centreon/metrcis/ and /var/lib/centreon/status/

for example, you can delete RRD older than retention parameter.

regards

ganoze commented 8 years ago

OK I see. There is already some cleanup implemented. However it relies on the services' index being flagged as _todelete.

So you wish to get services and their metrics automatically deleted after the retention period. This can be done through the SQL cleanup thread. It currently misses the retention period though.