[rrd-users] Re: aggregating data

Jeremy Harris jgh at wizmail.org
Wed Jul 19 22:47:09 MEST 2006


William Yardley wrote:
>> "CDEF:combined_average=p001-a,p001-b,+,p002-a,+,p002-b,+" and so forth?
> 
> So this works fine... But for some reason, the resulting graph only goes
> as far back (in time) as the latest-starting (not sure of a better way
> to say that) source being added.
> 
> I realize this is probably intentional, but is there a way to override
> this behavior?

It is indeed; the result of that calculation is undefined whenever
any of its inputs are undefined - which is the situation for times
before you began collecting.

You can use CDEF with "IF" and "UN" to insert default values
(obviously, you have to choose something meaningful for your
situation!)

Things like:

'CDEF:r_noMX_0=r_noMX,UN,0,r_noMX,IF'



Cheers,
    Jeremy

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