[rrd-users] Re: Cleaning a messed up rrdtool data file

Serge Maandag serge.maandag at staff.zeelandnet.nl
Fri Mar 4 13:50:43 MET 2005

> Therefore, is there a way of saying:
>    "if date before d0, then clamp to lim1 else clamp to lim2"

The CDEF language has an LTIME operator that can do that.
Don't ask me for details, haven't ever used it.

> The second approach I considered would be to go into the rrd file and 
> iterate over the values, looking for peaks greater than 2Mb, and 
> replacing them by a linear interpolation between to the two points 
> either side of the peak?
> The maths doesn't pose much of a problem, I'm wondering about the 
> mechanics of going through the datapoints in the rrd file.

That would be a clean solution. You could do it like this:
- "rrdtool dump" the database
- Use a regexp to extract the DS values from your RRA rows
- Change them to what you like
- "rrdtool restore" the database back to its binary form


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