[rrd-users] current value greater than max

Tobias Oetiker tobi at oetiker.ch
Sat Jul 28 16:03:40 CEST 2012

Hi Akafritz,

Thursday akafritz wrote:

> Hello
> I have a graph that is printing out values several datapoints, including
> CUR, AVG, AND MAX.  The values in this rrd are always increasing (e.g.
> unique users), so the CUR and MAX should always be the same.  For some
> reason, the CUR occassionally is slightly larger than the MAX:
> cur: 920.24   max: 920.20k
> cur: 852.14   max: 852.12k
> Looking at the one of the graph functions, I see the cur value is being
> pulled from the rrd as last value from AVERAGE, and the max as MAX directly
> from the rrd.  This seems to be the standard way these values are retrieved
> and printed, but I have no idea how this works such that the values are
> sometimes different (and I'm being asked how this is possible).  Any ideas
> how I can explain (and not necessarily change or fix) this?

the reason for this is most likely that your MAX rra has a
different resolution than your AVERAGE rra ... so the data in the
AVERAGE rra will be more current than the one in the MAX rra ...

and sind more current in your case means higher ...


> DEF:users-raw=data.rrd:ds0:AVERAGE
> DEF:users-raw-max=data.rrd:ds0:MAX
> CDEF:users=users-raw
> AREA:users-raw#00cc00ff:Unique Users:STACK
> GPRINT:users-raw:LAST:cur\:%5.2lf%s
> GPRINT:users-raw:AVERAGE:avg\:%5.2lf%s
> GPRINT:users-raw-max:MAX:max\:%5.2lf%s\j
> --
> View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/current-value-greater-than-max-tp7580316.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-users mailing list