Skip to main content

Hi,

Some of my rrd's have obsolete entries and this affects the visibility of the graph.
Example with load: a metric load_192.168.1.1
The ip has changed, so I have this metric that I don't need anymore.

How can I MASSIVELY purge all rrd entries that haven't been updated in a certain time?

Thanks

Hello 👋 ​@romsworld 

List and then delete

List: (NN → before how many days) Make sure to check, double check, triple check and check once more.. 😎

find /var/lib/centreon/{metrics,status}/ -type f -name '*.rrd' -mtime +NN -ls

If they look good then delete

find /var/lib/centreon/{metrics,status}/ -type f -name '*.rrd' -mtime +NN -delete

🤞 


Reply