[rrd-users] Re: Merging RRD's. What about CF's?

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat May 12 13:39:34 MEST 2001


George Dau wrote:

> I am writing code to merge two RRD files into one new RRD.
> 
> I will use rrdfetch to read the data from the soure files, and then
> rrdupdate to put the values in to the destination file.
> 
> How do I handle multiple consolidation functions?

I don't think you're on the right track here.  As you notice
you can't do this easy.

First of all, make sure you really want one big RRD.  It is often
better to have multiple RRDs, for instance one per interface.

I suppose you can make it work if you try really hard by calculating
the original data from the data stored in the RRD.  If you fill the
new RRD with that data, it should work (after all, if you're just
replaying the "original" input so you should get the same results).

A more elegant approach would be to copy the data over by accessing
the raw data.  Naturally you have to make sure the two RRDs are
compatible before you do so.  Same intervals, same settings per DS,
etcetera.

> Any ideas? I am writing in C and using popen() to execute the
> rrdtool functions.

Have a look at the several rrd functions.  Write your own and
after testing it may even be included in the rrdtool program.

I also think it would be best to move this discussion to the
rrdtool-developers list.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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