[rrd-users] Re: rrdtool fetch problem

Sunil Modi (IT) smodi at bordersgroupinc.com
Thu Nov 11 23:26:21 MET 2004


> hi every one !
>  
> when i am doing as exactly told in rrdtutoial, i am getting 
> very strange values while using fetch command.
>  
> kindly tell me where i am wrong.
>  
> root at Gateway:~/rrd# rm -rf test.rrd
> root at Gateway:~/rrd# rrdtool create test.rrd --start 920804400 
> DS:speed:COUNTER:600:U:U RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10
> root at Gateway:~/rrd# rrdtool update test.rrd 920804700:12345 
> 920805000:12357 920805300:12363       
> 
> root at Gateway:~/rrd# rrdtool fetch test.rrd AVERAGE --start 
> 920804400 --end 920809200
>                           speed
>  920804400: nan
>  920804700: nan
>  920805000: 4.0000000000e-02


The data is correct.  COUNTER takes your data and subtracts data point #1 from #2 to find a difference then divides by 300 (default step time).  So in your case, 12357 - 12345 = 12.  12 / 300 = .04 and 4.0e-02 = .04.  So on and so forth.

-sunil

--
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