[rrd-users] in rrd, the value in step getting corrupt....

Shatul Mangla shatul.mangla at aricent.com
Mon Dec 29 10:48:21 CET 2008



Hello,



I am getting the following problem, and even have perl version 5.8.4.

Can someone help me over it.....







############################

#!/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




________________________________
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20081229/36ce124c/attachment.html 


More information about the rrd-users mailing list