[rrd-users] Re: Data buildup, need to clip information

Serge Maandag serge.maandag at staff.zeelandnet.nl
Tue Mar 15 21:59:02 MET 2005

> I've asked this question on amavis-stats as well.  I made a 
> grave error with the application and imported the data 
> multiple times into the rrd files.  Is it possible to remove 
> a week's worth of data from the rrd files?  If so, how do I do it?

Rrdtool dump, edit or parse through a script and rrdtool restore.


- create a database with the same properties
- rrdtool dump both databases
- count the lines before the week starts -> X lines
- count the lines until the week ends -> Y lines
- count the total amount of lines -> Z lines
- W = Z - X
- V = Y - X
- U = Z - Y

And then something like:

(head -X oldfile;tail -W newfile | head -V;tail -U oldfile) > resultfile
Rrdtool restore resultfile


Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list