[rrd-users] Re: TOTAL function over small time periods

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Sep 15 16:06:28 MEST 2005

On Thu, Sep 15, 2005 at 02:47:23PM +0200, Chris Picton wrote:
> Hi all
> I have a data source where I am incrementing a COUNTER rrd by one
> whenever an event occurs.
> I want to plot a graph of number of occurrences per
> (hour/day/month/etc).
> I had thought that the TOTAL function would be of help here, but am
> having problems.

The total function itself does not seem to be the problem.

>  "DEF:e0=file.rrd:event:AVERAGE:start=1125525600+0d:end=1125525600+1d" \
>  "DEF:e1=file.rrd:event:AVERAGE:start=1125525600+1d:end=1125525600+2d" \
>  "DEF:e2=file.rrd:event:AVERAGE:start=1125525600+2d:end=1125525600+3d" \
>  "DEF:e3=file.rrd:event:AVERAGE:start=1125525600+3d:end=1125525600+4d" \

Your intention: let e0 be a time range, let e1 follow that range, and so on.
That's how I understand it as well.

Unfortunately some optimalisation code in rrdtool doesn't allow for this.
These four ranges are effectively the same.

>  "VDEF:t0=e0,TOTAL" \
>  "LINE:t0#FF0000" \
>  "VDEF:t1=e1,TOTAL" \
>  "LINE:t1#FF0000" \ 
>  "VDEF:t2=e2,TOTAL" \
>  "LINE:t2#FF0000" \ 
>  "VDEF:t3=e3,TOTAL" \
>  "LINE:t0#FF0000" \ 
>  etc etc

I'm sure that last "t0" is a typo.  For the rest: you use total as it is
intended to be used.

I haven't got any experience with specifying start/end on the DEF lines.

Maybe you can work around the problem by specifying four different files,
these can be copies or maybe even links.


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