This is a discussion on [rrd-users] Re: Data buildup, need to clip information within the RRD Users forums, part of the Networking and Network Related category; > I've asked this question on amavis-stats as well. I made a > grave error with the application ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> 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. Or: - 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 Serge. ------------- 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@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi |
![]() |
| Thread Tools | |
| Display Modes | |
|
|