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