[rrd-users] Wrong values from rrd fetch

Cakl Pavel PCakl at anect.com
Tue Oct 7 08:20:40 MEST 2003




Hi all , 
If I set up the database in time which is multiple of 60 everything is
OK .

# /opt/RRDTool/bin/rrdtool create test.rrd --start 920804400 --step 60
DS:test:GAUGE:120:U:U RRA:AVERAGE:0.5:1:800 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804460:12 920804520:14 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804580:1 920804640:8 #
/opt/RRDTool/bin/rrdtool update test.rrd 920804700:7 920804760:6 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804820:2 920804880:22 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804940:23 920805000:24 

# /opt/RRDTool/bin/rrdtool fetch test.rrd AVERAGE --start 920804400
--end 920805000
                    test

 920804400: nan
 920804460: 1.2000000000e+01
 920804520: 1.4000000000e+01
 920804580: 1.0000000000e+00
 920804640: 8.0000000000e+00
 920804700: 7.0000000000e+00
 920804760: 6.0000000000e+00
 920804820: 2.0000000000e+00
 920804880: 2.2000000000e+01
 920804940: 2.3000000000e+01
 920805000: 2.4000000000e+01

But if I set up the database in time which is not multiple of 60 - by
perl script I don`t know which time I have to use for interval to fetch
data because RRDTool Itself create the database on multiple of 60 but if
I try to use last command I gives me the time which I realy update the
database for example 920804701

# /opt/RRDTool/bin/rrdtool create test.rrd --start 920804401 --step 60
DS:test:GAUGE:120:U:U RRA:AVERAGE:0.5:1:800 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804461:12 920804521:14 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804581:1 920804641:8 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804701:7 920804761:6 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804821:2 920804881:22 
# /opt/RRDTool/bin/rrdtool update test.rrd 920804941:23 920805001:24 

# /opt/RRDTool/bin/rrdtool fetch test.rrd AVERAGE --start 920804401
--end 920805001
                    test

 920804400: nan
 920804460: 1.2000000000e+01
 920804520: 1.3966666667e+01
 920804580: 1.2166666667e+00
 920804640: 7.8833333333e+00
 920804700: 7.0166666667e+00
 920804760: 6.0166666667e+00
 920804820: 2.0666666667e+00
 920804880: 2.1666666667e+01
 920804940: 2.2983333333e+01
 920805000: 2.3983333333e+01
 920805060: nan

I think that this is the same problem like David Knecht had but I don`t
know how to correct it , to get 24 instead 23,98333...... 

Pavel

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