Back to Opsview FAQ

Timeseriesrrd-housekeeping

Housekeeping script to remove old/unused RRD files from timeseries, removes old and unused RRD from the timeseries server.

Synopsis Copied

su - opsview
export PERL5LIB=/opt/opsview/timeseriesrrd/lib:$PERL5LIB
/opt/opsview/supportscripts/bin/opsview-timeseriesrrd-housekeeping

Description Copied

Remove old and unused RRD from the timeseries server, to reduce disk space usage.

Add an entry to cron in order to run the script once per day (if you like)

BUG - OP-25201

Example Copied

The below directory is filling up in space/size and if you want to tidy this up, the script does this for you:

du -sh /opt/opsview/timeseriesrrd/var/data/*

And another alternative is also to reduce the default retention days by editing the below retention days:

vim /opt/opsview/timeseriesrrd/etc/timeseriesrrd.yaml
5 timeseriesrrd:
6 data_dir: /opt/opsview/timeseriesrrd/var/data
7 retention_days: 30
8 rrd:

For these changes to take effect restart the below components:

/opt/opsview/watchdog/bin/opsview-monit restart opsview-timeseriesrrdqueries
/opt/opsview/watchdog/bin/opsview-monit restart opsview-timeseriesrrdupdates
["Geneos"] ["FAQ"]

Was this topic helpful?