[rrd-users] strange numbers w/ counter

Greg MacLellan greg at mwater.ca
Mon Jul 14 18:14:13 MEST 2003

I'm getting some weird outputs on a counter graph I have, and I'm just 
trying to understand why. I'm actually using Cacti as a front-end, but I 
believe the problem is either with rrdtool, or 
confusion/misconfiguration on my part (which is likely).

This is a quick log of the update commands, showing the actual counter 

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
07/14/2003 11:44 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:550
07/14/2003 11:45 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:559
07/14/2003 11:46 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:569
07/14/2003 11:47 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:578
07/14/2003 11:48 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:586
07/14/2003 11:49 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:594
07/14/2003 11:50 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:604
07/14/2003 11:51 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:613
07/14/2003 11:52 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update 
/var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:620

rrdtool fetch AVERAGE output:

1058197320: 1.8333333333e-01
1058197380: 1.5055555556e-01
1058197440: 1.5000000000e-01
1058197500: 1.5000000000e-01
1058197560: 1.6638888889e-01
1058197620: 1.5027777778e-01
1058197680: 1.3361111111e-01
1058197740: 1.3333333333e-01
1058197800: 1.6611111111e-01
1058197860: 1.4785974499e-01

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

I'm sampling data (and updating rrdtool) once a minute, and the step 
value for this datasource is 60 seconds:

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

I would think that I should be seeing 9,9,9,10,etc. on the graph, 
instead of .18 .15 etc that's actually showing up. Do I have something 
messed up here? Do I just not understand how it works? Or is there 
actually a problem here?


ttyl, greg

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