[rrd-users] Re: Adding a new ds to an existing rrd

Alex van den Bogaerdt alex at ergens.op.het.net
Fri Aug 19 13:57:10 MEST 2005

On Fri, Aug 19, 2005 at 11:22:50AM +0200, Marc Haber wrote:

> I need to add a ds to an existing rrd, and would like doing so without
> losing all history data for the other ds's in the rrd file. This seems
> to be harder than I expected.

> Again, the output of rrdtool dump shows that rrdtool is able to print
> every data point available automatically, but the XML format is hard
> to parse. It would be so nice to get all data points in the same
> format as rrdtool fetch prints (or RRDs fetch puts into perl data
> structures)

There is another command, rrdtool restore, which reads an XML file.

The process would be like this:

-1-  dump the database
-2-  edit the XML file, alter the header
-3-  edit the XML file, insert new DS
-4-  restore the database

You can do this yourself, or use one of the many scripts available
on the web.

> Am I missing something, or is rrdtool really missing these useful
> features?

This doesn't happen that often.  Many people don't need to add (or
remove) a DS.  It's not that often that a third direction is added
to an ethernet card, usually "in" and "out" are enough.  When you
add an ethernet card to a computer, just use an extra rrd file.

Maybe you are asking the wrong question and maybe you don't need
to add a ds to a rrd file.  Maybe you just want to collect more
data and are looking for a way to store that data ?


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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list