[rrd-users] rrd info and simple perl script

Hans Merkwurdigliebe hans.merkwurdigliebe at gmail.com
Thu Nov 22 12:30:57 CET 2007


Hi all,

i am writting perl script with RRDs, and i am getting problems - at
the begining with info:

from command line it works:

 $ /usr/local/rrdtool-1.2.15-m64/bin/rrdtool info "/.../cpu_nice.rrd"

filename = "/......../cpu_nice.rrd"
rrd_version = "0003"
step = 10
last_update = 1195729825
...

But from perl does not:
...
use lib qw( /usr/local/rrdtool-1.2.15-m64/lib/perl );
use RRDs;
...
$hash = RRDs::info "/..........cpu_nice.rrd";

my $ERR=RRDs::error;
die "$ERR\n" if $ERR;
foreach my $key (keys %$hash){
  print "$key = $$hash{$key}\n";
}

And it's dying saying: unknown consolidation function ''


Where am i making mistake?

Best regards,
Merkwurdigliebe



More information about the rrd-users mailing list