[rrd-users] Re: problem with update (integer values)

Joe Loiacono jloiacon at csc.com
Mon Jul 10 15:25:11 MEST 2006


Pobably due to not updating at exactly 300 seconds. From the RRDtool 
documentation (note the original value is stored and perhaps you can get 
it - more experienced folks can straighten this out :-):
"When monitoring the state of a system, it is convenient to have the data 
available at a constant time interval. Unfortunately, you may not always 
be able to fetch data at exactly the time you want to. Therefore RRDtool 
lets you update the logfile at any time you want. It will automatically 
interpolate the value of the data-source (DS) at the latest official 
time-slot (intervall) and write this interpolated value to the log. The 
original value you have supplied is stored as well and is also taken into 
account when interpolating the next log entry."




"Rogério Schneider" <stockrt at gmail.com> 
Sent by: rrd-users-bounce at list.ee.ethz.ch
07/08/2006 01:53 AM

To
rrd-users at list.ee.ethz.ch
cc

Subject
[rrd-users] problem with update (integer values)






Hi people.
I have this problem: When I insert (update) an rrd db with my scripts I
insert some int values, but with fetch I read only float value.
But, this is ok if the round turns back into int values, but it is not
really what occurs. When I insert, for example, value 514 I got 356 into 
the
rrd file !!! I don't know why this is happing, and I need your help.

It is not all times this occurs, but it is very frequent to insert 
something
linke a 2000 and fetch from rrd values like 1700.. This is bad for me.

I Insert values at each 300 seconds, near, of course, this can vary 60
seconds to more, like, from 300 do 360 seconds each update.





INFO:
root at island# rrdtool info
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
filename = "/usr/local/www/data/netact/graph/200.180.200.126_300.rrd"
rrd_version = "0003"
step = 300
last_update = 1152334359
ds[convs_as_source].type = "GAUGE"
ds[convs_as_source].minimal_heartbeat = 600
ds[convs_as_source].min = NaN
ds[convs_as_source].max = NaN
ds[convs_as_source].last_ds = "UNKN"
ds[convs_as_source].value = 1.0532941716e+04
ds[convs_as_source].unknown_sec = 0
ds[baseline].type = "GAUGE"
ds[baseline].minimal_heartbeat = 600
ds[baseline].min = NaN
ds[baseline].max = NaN
ds[baseline].last_ds = "UNKN"
ds[baseline].value = 1.7076132782e+04
ds[baseline].unknown_sec = 0
ds[threshold].type = "GAUGE"
ds[threshold].minimal_heartbeat = 600
ds[threshold].min = NaN
ds[threshold].max = NaN
ds[threshold].last_ds = "UNKN"
ds[threshold].value = 6.8304531128e+04
ds[threshold].unknown_sec = 0
rra[0].cf = "LAST"
rra[0].rows = 52704
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0

CREATE
                DS:convs_as_source:GAUGE:600:U:U \
                DS:baseline:GAUGE:600:U:U \
                DS:threshold:GAUGE:600:U:U \
                RRA:LAST:0.5:1:52704 \

UPDATE
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:150:107:428 - here first
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:78:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:61:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:66:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:82:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:80:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:64:107:428
update comando: /usr/local/bin/rrdtool update
/usr/local/www/data/netact/graph/200.180.200.126_300.rrd
N:66:107:428
root at island#

FETCH
1152331500: 8.4000000000e+01 1.0700000000e+02 4.2800000000e+02
1152331800: 1.3894959670e+02 1.0700000000e+02 4.2800000000e+02
1152332100: 1.5071733939e+02 1.0700000000e+02 4.2800000000e+02   - here
first
1152332400: 9.8236373520e+01 1.0700000000e+02 4.2800000000e+02
1152332700: 6.6268902707e+01 1.0700000000e+02 4.2800000000e+02
1152333000: 6.4235958800e+01 1.0700000000e+02 4.2800000000e+02
1152333300: 7.5736057547e+01 1.0700000000e+02 4.2800000000e+02
1152333600: 8.0862740147e+01 1.0700000000e+02 4.2800000000e+02
1152333900: 7.1454013280e+01 1.0700000000e+02 4.2800000000e+02
1152334200: 6.4993693747e+01 1.0700000000e+02 4.2800000000e+02
1152334500: nan nan nan
1152334800: nan nan nan


This values make no sense for me, I got, for example, 98 besides the 78 I
puted into rrd, in the second value, just before the 150.


Thanks for your help!

-- 

Att,

Rogério Schneider
(55) 9985 2127
(55) 3332 5923
(55) 3333 8158
(55) 3321 1535

MSN: stockrt at hotmail.com
ICQ: 78778973
GTalk: stockrt at gmail.com
Skype: stockrt

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list