Skip to main content

Hello ​@Laurent ,
We are facing issue that our /var/lib/centreon is nearly full and we don’t understand which files should be deleted to free some space.
In recent day it started filling up drastically.


In /var/lib/centreon(15GB) directory /var/lib/centreon/metrics directory consuming 11GB, It contain .rrd files from 2020.
 


Can you please help me to free some space at /var/lib/centreon ?
which files should i delete?
Is it safe to delete old .rrd files?
 
Thank You

hello

RRD are generated for each metrics (check with performance data), as far as I know there is no way to delete them as is, it needs to be done with knowing what to query in the database

 

however if the file have not been modified recently, meaning they are not linked to actively checked service, they could be safe to delete, but I would wait for a centreonian to confirm you can do that safely

 

this will tell you the size of all rrd older than 365 days (maybe even 30 days?)

find /var/lib/centreon/metrics -maxdepth 1 -type f -mtime +365 -print0 | du -hc --files0-from - | tail -n -1

to delete, here is the command:

find /var/lib/centreon/metrics -maxdepth 1 -type f -mtime +365  -exec rm {} \;

 

if you did an update of the platform and there are some checks that uses “global” metrics, or autodiscover, it can generate a lot of data because of new plugins, new checks… 

however, please consult this article Prerequisites | Centreon Documentation you should not have a 16GB partition for /var/lib/centreon

 

 


Hello ​@christophe.niel-ACT ,
Thank you for quick reply.
I have run command :- find /var/lib/centreon/metrics -maxdepth 1 -type f -mtime +365 -print0 | du -hc --files0-from - | tail -n -1
 

I have nearly 1.3GB of old files.


But as your mention im waiting centreonian to confirm i can remove those files safely.
Thank You.


Reply