[rrd-users] Re: strange numbers w/ counter

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Jul 14 18:52:26 MEST 2003


On Mon, Jul 14, 2003 at 12:14:13PM -0400, Greg MacLellan wrote:

> 07/14/2003 11:42 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
> /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:532
> 07/14/2003 11:43 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
> /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:541

difference in time: few seconds (60 or so, not very accurate due to "N")
difference in value: 9

> 1058197320: 1.8333333333e-01

value in the range of 0.1833333333 per second.

9/60 == .1500000000
--> correct range when compared to 0.1833333333 alike values.

> MAX and MIN both have the same output (why is that?)

min(x) == avg(x) == max(x)

It only matters if you have more than one sample:

min(x,y) <= avg(x,y) <= max(x,y)
min(x,y,z) == avg(x,y,z) == max(x,y,z)

and so on.

This will show up in the other RRAs.

> /var/mwt/rrdtool/bin/rrdtool create \
> /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd \
> --step 60  \
> DS:in1cnt:COUNTER:120:0:1000 \

COUNTER:   range = diff(value)/diff(time)
see the docs, the faq, the tutorial and the mail archives.

> RRA:AVERAGE:0.5:1:1440 \
> RRA:AVERAGE:0.5:10:2016 \
> RRA:AVERAGE:0.5:60:1440 \
> RRA:MIN:0.5:1:1440 \
> RRA:MIN:0.5:10:2016 \
> RRA:MIN:0.5:60:1440 \
> RRA:MAX:0.5:1:1440 \
> RRA:MAX:0.5:10:2016 \
> RRA:MAX:0.5:60:1440 \

the RRAs with only 1 sample per range will not differ between min,max and avg.
The other RRAs will differ.  Your setup does however make it easy to use the
same grapher script for all of min, avg and max.

HTH
Alex
-- 
Received on my linux server: "Increase the speed of your PC in minutes! Stop
windows from crashing, improve internet security and optimize your computers
performance with just a few easy mouse clicks!"

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list