[rrd-users] Having problem storing values correctly in rdd

Markus Boss markus.boss at unic.ch
Thu May 3 11:06:48 MEST 2001


hi

i wrote some code who dumbs data into a rrd, but doesn't work correctly all the time....
iam using the perl-shared module from the rrdtool-1.0.33.x86 Distribution.

i have different steps in seconds iam using:
900 , 1800, 3600, 7200, 14400 ....

if i dumbs values with a step less than 14400 everything works correctly:

The create command:
***********************************
RRD CREATE: e:\usr\Sites\Projects\test02\files\rrd\cust_100.rrd 
RRD CREATE: --start
RRD CREATE: 987026400
RRD CREATE: --step
RRD CREATE: 7200
RRD CREATE: DS:coun_nr_0:GAUGE:7200:U:U
RRD CREATE: RRA:AVERAGE:0.5:1:1000
**********************
my values:

987033600:1767000
987040800:1931000
987048000:1983000
987055200:1607000
987062400:0
987069600:0
987076800:0
987084000:1419000
etc.....

***********************************
whats rrd fetch now returns:

987026400: -1.#IND000000e+000
987033600: 1.7670000000e+006
987040800: 1.9310000000e+006
987048000: 1.9830000000e+006
987055200: 1.6070000000e+006
987062400: 0.0000000000e+000
987069600: 0.0000000000e+000
987076800: 0.0000000000e+000
987084000: 1.4190000000e+006
etc......


now  I have a step of 14400 seconds:

The create command:
***********************************
RRD CREATE: e:\usr\Sites\Projects\test02\files\rrd\cust_100.rrd 
RRD CREATE: --start
RRD CREATE: 987026400
RRD CREATE: --step
RRD CREATE: 14400
RRD CREATE: DS:coun_nr_0:GAUGE:14400:U:U
RRD CREATE: RRA:AVERAGE:0.5:1:1000
**********************
my values:

987040800:3698000
987055200:3590000
987069600:0
987084000:1419000
987098400:3564000
987112800:3432000

etc....

***********************************
whats rrd fetch now returns:

987019200: -1.#IND000000e+000
987033600: 3.6980000000e+006
987048000: 3.6440000000e+006
987048000: 3.6440000000e+006

etc.....

Now he does some averaging because it doesn't get the right time intervals.
Iam sure somebody knows what iam doing wrong.

I read the tutorial, the lists entries but I didn't get a hint...

Thank you very much for your help!!


cheers markus boss










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