[rrd-users] 64-bit maximum create question

golden golden at acm.wwu.edu
Mon Apr 19 21:05:42 MEST 2004


Hello all,

I am creating a PERL program to create and update RRD.  I have found
that when I create the graph using a 64 bit value (1.8e+19) for the
maximum, the fetch data shows something smaller (1.8e+17).  It seems
that if I do a tune command after the create to reset the maximum
value to 1.8e+19, the database gets updated correctly.

Is this a known issue?

=== PERL Code ===

# 2 ** 64 bit value
my $variable_64bit = "18446744073709551616";

`rrdtool create packet.rrd --start $time --step 60
DS:pkts_in_total:COUNTER:120:0:$variable_64bit $g_3hour_rra`;

=== Command line ===
prompt#> rrdtool info packet.rrd

filename = "packet.rrd"
rrd_version = "0001"
ds[pkts_in_total].type = "COUNTER"
ds[pkts_in_total].min = 0.0000000000e+00
ds[pkts_in_total].max = 1.8446744074e+17 <-- Incorrect 64-bit value (only
+17)

prompt#> rrdtool tune packet.rrd --maximum
pkts_in_total:18446744073709551616

prompt#> rrdtool info packet.rrd

filename = "packet.rrd"
rrd_version = "0001"
ds[pkts_in_total].type = "COUNTER"
ds[pkts_in_total].min = 0.0000000000e+00
ds[pkts_in_total].max = 1.8446744074e+19 <-- Correct 64-bit value (+19)


Any suggestions or help is greatly appreciated.

Thanks in advance,
- lisa






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