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

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 ...


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-16-2005
Serge Maandag
 
Posts: n/a
Default [rrd-users] Re: Data buildup, need to clip information

> 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

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:17 AM.


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