On Mon, Jul 17, 2006 at 07:45:30PM -0500, MrPaul wrote:
> On 7/17/06, William Yardley <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to