[rrd-users] Re: rrd fetch command - unexpected output

Hwee Khoon, Neo hweekhoon.neo at pacific.net.sg
Fri Feb 4 05:06:21 MET 2005


Sorry got to resend this as there's no reply so far. Hope anyone here can
enlighten.

Thanks.

-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of Hwee Khoon, Neo
Sent: Friday, January 28, 2005 4:05 PM
To: Rrd-Users
Subject: [rrd-users] Re: rrd fetch command - unexpected output


I think I know why - because it's been created with a higher step value.

I tried creating another rrd database:

rrdtool create default.rrd \
--step 300 \
DS:ioct:GAUGE:600:0:U \
DS:ooct:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:28800 \

Here are some results which I still cannnot decipher:

1) [root at neogeo bin]# ./rrdtool fetch default.rrd AVERAGE | wc -l
    292

I suppose this is 24 HRS worth of records. But where does the extra 4
records comes in? I thought at most it would be 288 + 1


2) [root at neogeo bin]# ./rrdtool fetch default.rrd AVERAGE --start
20050110 --end 20050111 | wc -l
    292

Does this means records from 2005 01 10 Time = 00:00 to Time 01 10 Time =
23:59?

So will 2005 01 11 Time = 00:00 data be reflected?

3) [root at neogeo bin]# ./rrdtool fetch default.rrd AVERAGE --start 20050110
00:00 --end 20050110 23:59 | wc -l
      4

According to the time specification, this should be correct, but somehow, I
got only 4 records.


Also, I tried doing an update:
[root at neogeo bin]# ./rrdtool update default.rrd N:1234:4388
[root at neogeo bin]# ./rrdtool fetch default.rrd AVERAGE

but I cannot find the 2 values inside the RRD. I tried specifying a future
end date but to no avail. Can anyone advice why this value is not reflected
immediately?


Thanks alot!

Rgds,
HK





-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of Hwee Khoon, Neo
Sent: Friday, January 28, 2005 2:04 PM
To: Rrd-Users
Subject: [rrd-users] rrd fetch command - unexpected output


Hi all,

I am trying to use rrdtool fetch command to obtain 1 day worth of data
(polled at 5 mins interval). However the output is not what I expected:

With 5 mins interval, I should have 288 records. Can anyone spot my mistake?

Thanks.

Rgds,
HK


bash-2.05# /usr/local/rrdtool/bin/rrdtool fetch apple-CPU.rrd
AVERAGE --start 20050102 --end 20050103
                      ds0           ds1           ds2           ds3

1104645600: 1.9971458333e+01 1.9996250000e+01 NaN NaN
1104652800: 2.0667777778e+01 2.0865694444e+01 NaN NaN
1104660000: 2.0290555556e+01 2.0381805556e+01 NaN NaN
1104667200: 1.9851805556e+01 1.9547986111e+01 NaN NaN
1104674400: 1.9761666667e+01 1.9419305556e+01 NaN NaN
1104681600: 2.1393472222e+01 2.1149930556e+01 NaN NaN
1104688800: 1.9164305556e+01 1.9066527778e+01 NaN NaN
1104696000: 1.4575972222e+01 1.5072222222e+01 NaN NaN
1104703200: 1.2986250000e+01 1.2808750000e+01 NaN NaN
1104710400: 1.2809305556e+01 1.2597777778e+01 NaN NaN
1104717600: 1.6950972222e+01 1.6452777778e+01 NaN NaN
1104724800: 1.9614722222e+01 1.9296944444e+01 NaN NaN
1104732000: 1.9206388889e+01 1.9202500000e+01 NaN NaN
1104739200: 2.0455277778e+01 2.0409861111e+01 NaN NaN

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


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