[rrd-users] Re: Deleting/Modifying data in RRD?

Bill Z. bgk at hotunix.com
Thu Apr 1 21:18:18 MEST 2004


No - seems it can't overwrite on the exiting rrd file.
So you still need two commands:

rrdtool dump db.rrd | sed 's/oldvalue/newvalue/' \
 | rrdtool restore - tmp.rrd; mv tmp.rrd db.rrd

The hyphen is neat though (not in manpage) - thanks a lot! :)

On Thu, 1 Apr 2004, Serge Maandag wrote:

> > Thanks a lot Miguel.  That worked great.  Here's what I ran:
> >
> > rrdtool dump db.rrd > db.xml
> > sed 's/oldvalue/newvalue' db.xml >tmp; mv tmp db.xml rrdtool
> > restore db.xml db.rrd
>
> FYI..
> You can even shorten that to:
> rrdtool dump db.rrd | sed 's/oldvalue/newvalue/' | rrdtool restore -
> db.rrd
>
> Serge.

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