in reply to perl code not working after moved new host with latest perl version

It should be noted that rrdtool comes with (optional) perl interface. If properly installed, you don't need external commands to access the data. For example (untested):

use RRDs; ... my ($start,$step,$names,$data) = RRDs::fetch("$dir/$f", "AVERAGE", "--start", $begin, "--end", $end); die if RRDs::error; foreach (@$data) { print "@$_", "\n"; }
The pipe and parsing are unnecessary and avoidable.

  • Comment on Re: perl code not working after moved new host with latest perl version
  • Download Code