Skip to main content
Question

Purge RRD File

  • June 6, 2025
  • 1 reply
  • 61 views

Forum|alt.badge.img+8

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

1 reply

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • June 6, 2025

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

🤞Â