[rrd-users] Re: Wrong figures

Serge Maandag serge.maandag at staff.zeelandnet.nl
Wed Feb 5 14:06:59 MET 2003


> rrdtool create test.rrd --start 920804400 DS:speed:COUNTER:600:U:U

You're defining a COUNTER.

> rrdtool update test.rrd 920804700:12345 920805000:12357
920805300:12363

between 920805300 and 920805000 the change was (12363 - 12357) /
(920805300 - 920805000) = 6 / 300 = 0.02 = 2.0e-2

> 920805300: 2.0000000000e-02

And that's what's in your database. Now what's the problem?

Serge.


-----Original Message-----
From: Theunis De Klerk [mailto:theunis at ixpress.co.za] 
Sent: Wednesday, February 05, 2003 1:21 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Wrong figures



Hi Everyone, its me again.

I have been following the tutorial PRECISELY and on doing the first
example i end up with this problem:

step 1:
rrdtool create test.rrd --start 920804400 DS:speed:COUNTER:600:U:U
RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10

step 2 :
rrdtool update test.rrd 920804700:12345 920805000:12357 920805300:12363
rrdtool update test.rrd 920805600:12365 920805900:12369 920806200:12373
rrdtool update test.rrd 920806500:12383 920806800:12393 920807100:12399
rrdtool update test.rrd 920807400:12405 920807700:12411 920808000:12415
rrdtool update test.rrd 920808300:12420 920808600:12422 920808900:12423

step 3: 
rrdtool fetch test.rrd AVERAGE --start 920804400 --end 920809200

Result :
920804400: nan
920804700: nan
920805000: 4.0000000000e-02
920805300: 2.0000000000e-02
920805600: 6.6666666667e-03
920805900: 1.3333333333e-02
920806200: 1.3333333333e-02
920806500: 3.3333333333e-02
920806800: 3.3333333333e-02
920807100: 2.0000000000e-02
920807400: 2.0000000000e-02
920807700: 2.0000000000e-02
920808000: 1.3333333333e-02
920808300: 1.6666666667e-02
920808600: 6.6666666667e-03
920808900: 3.3333333333e-03
920809200: nan

Why do i get the wrong Results compared to the example?

Theunis

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

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