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

This is a discussion on [rrd-users] Re: Cleaning a messed up rrdtool data file within the RRD Users forums, part of the Networking and Network Related category; > Therefore, is there a way of saying: > > "if date before d0, then clamp to lim1 else ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2005
Serge Maandag
 
Posts: n/a
Default [rrd-users] Re: Cleaning a messed up rrdtool data file

> 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

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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0