[rrd-users] Re: Merging two RRDs

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Aug 9 18:35:09 MEST 2004


On Mon, Aug 09, 2004 at 11:34:27AM +1000, Euan Buchanan wrote:

> Whilst I'm not losing any data, it does make viewing the data a little
> inconvenient.  Is there a way I can populate one rrd with the values
> from the other rrd?  Filling in the gaps as it were.

If the problem is viewing, why not solve it in "rrdtool graph" ?

  DEF:s1=/path/to/rrdfile:serial1:AVERAGE
  DEF:s2=/path/to/rrdfile:serial2:AVERAGE
  CDEF:serial=s1,UN,s2,s1,IF

In other words:  get the two data sources, select the 2nd one if
the 1st one has unknown data.

Perhaps slightly better:

  DEF:s1=/path/to/rrdfile:serial1:AVERAGE
  DEF:s2=/path/to/rrdfile:serial2:AVERAGE
  CDEF:serial=s1,UN,s2,s2,UN,0,s2,IF,s1,+,IF

which will also catch the case where a switchover occurs and thus both
CDPs have known data.

Alex
-- 
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers.  If
you reply to me off-list, you'd better tell me you're doing so.  If
you don't, and if I reply to the list, that's your problem, not mine.

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