[rrd-users] Strange RRDs::info returns

Franck Malartic Franck.Malartic at onecert.fr
Thu Jul 1 11:20:17 MEST 2004


Hello,

I'm new with RRDtool and here is my problem :
############################
#!/usr/bin/perl -w
use lib qw( /udd/sri/malartic/local/sunOS/RRD/lib/perl );
use RRDs;
my %hash ;
RRDs::create ("test.rrd", "--start", "1023654125", "--step", "300",
          "DS:mem:GAUGE:600:0:671744", "RRA:AVERAGE:0.5:12:24");
RRDs::info ("test.rrd");
$hash = RRDs::info "test.rrd";
foreach my $key (keys %$hash){
     if (defined $$hash{$key}) {
         print "$key = $$hash{$key}\n";
     } else {
         print "$key\n";
     }
}
############################
prints (notice the strange values for step, heartbeat, rows, etc.) :
    ds[mem].type = GAUGE
    rrd_version = 0001
    rra[0].pdp_per_row = 51539607552
    ds[mem].max = 671744
    ds[mem].value = 0
    last_update = 4396560989290496000
    filename = test.rrd
    rra[0].rows = 103079215104
    ds[mem].minimal_heartbeat = 2576980377600
    ds[mem].min = 0
    rra[0].xff = 0.5
    rra[0].cdp_prep[0].unknown_datapoints = 17179869184
    ds[mem].unknown_sec = 536870912000
    rra[0].cf = AVERAGE
    rra[0].cdp_prep[0].value
    ds[mem].last_ds = UNKN
    step = 1288490188800
-----------------------
while, with the same test.rrd file,  from command shell, i have :
    atoll{566}$ rrdtool info test.rrd
    filename = "test.rrd"
    rrd_version = "0001"
    step = 300
    last_update = 1023654125
    ds[mem].type = "GAUGE"
    ds[mem].minimal_heartbeat = 600
    ds[mem].min = 0.0000000000e+00
    ds[mem].max = 6.7174400000e+05
    ds[mem].last_ds = "UNKN"
    ds[mem].value = 0.0000000000e+00
    ds[mem].unknown_sec = 125
    rra[0].cf = "AVERAGE"
    rra[0].rows = 24
    rra[0].pdp_per_row = 12
    rra[0].xff = 5.0000000000e-01
    rra[0].cdp_prep[0].value = NaN
    rra[0].cdp_prep[0].unknown_datapoints = 4


Can someone help me ?

Here is the system :
    atoll{567}$ uname -a
    SunOS atoll 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-280R

    atoll{568}$ perl -v

    This is perl, v5.6.1 built for sun4-solaris-64int
    (with 48 registered patches, see perl -V for more detail)

[...]

Best regards,
franck.

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