[rrd-users] Re: aggregating data

William Yardley rrd-users at veggiechinese.net
Tue Jul 18 03:49:12 MEST 2006


On Mon, Jul 17, 2006 at 07:45:30PM -0500, MrPaul wrote:
> On 7/17/06, William Yardley <rrd-users at veggiechinese.net> wrote:

> > Sorry for not noticing that one. This message doesn't explain how to
> > aggregate data from different files to a single line, however.
> >
> > For instance, let's say I'm graphing average and max power consumption
> > (for 5 minute periods) from a bunch of power strips. How would I go
> > about creating a graph with the sum of all power strips?
 
> If using the RRD files that are created via MRTG then use as follows

I'm not using MRTG...
 
> Load up the rra files
> DEF:rra1a=/usr/local/rrdtool/file1.rrd:ds0:AVERAGE \
> DEF:rra1b=/usr/local/rrdtool/file1.rrd:ds1:AVERAGE \
> DEF:rra2a=/usr/local/rrdtool/file2.rrd:ds0:AVERAGE \
> DEF:rra2b=/usr/local/rrdtool/file2.rrd:ds1:AVERAGE \
> 
> Add them together in your case
> CDEF:rra1s:rra1a,rra2a,+ \
> CDEF:rra2s:rra2a,rra2a,+ \

I think that's:
 CDEF:rra1s=rra1a,rra2a,+ \
          ^^^
right?

That seems to work.
to add >= 3 items, I guess I'd do something like this?

"CDEF:combined_average=p001-a,p001-b,+,p002-a,+,p002-b,+" and so forth?

w

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