[rrd-users] [Fwd: Re: Having problem storing values correctly in rdd]
Mark Smith
mark.smith at comdev.cc
Tue May 8 17:32:00 MEST 2001
Oops. FOrwarded this incorrectly the first time. here's my response
for everyone (including the archives) to benefit.
-Mark
-------- Original Message --------
I can't think of why this would be the problem, but why do you have the
DS's in different .rrd files? You can put them both in the same .rrd
and just have different RRAs for each time line.
DS:coun_nr_0:GUAGE:7200:U:U
RRA:AVERAGE:0.5:1:1000
RRA:AVERAGE:0.5:2:1000
Something else to note, your start time is not an even multiple of your
step:
% bc -l
987026400/14400
68543.50000000000000000000
So is your timeline:
987040800/14400
68544.50000000000000000000
You have a heartbeat of 14400. I don't know how RRD deals with the end
points of its heartbeat.
Try:
- Making your heartbeat 28800
- Feeding your data on the correct timepoints (t=n*14400)
-Mark
Markus Boss wrote:
>
> 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
--
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