- If log2rrd.pl will not run because perl complains not finding
RRDs.pm in @INC, then... copy the contents of
/usr/local/rrdtool-1.0.7/lib/perl to /usr/local/lib/perl5
or somesuch...
cd /usr/local/rrdtool-1.0.7/lib/perl
cp -r * /usr/local/lib/perl5
- If you run log2rrd.pl to import a MRTG .log file and you use
mrtg2nrg to import the corresponding MRTG .cfg stuff, then you
should edit out lines 174 and 175 of log2rrd.pl
# my(@tuneparams) = ("$RRD", "-d", "ds0:COUNTER", "-d", "ds1:COUNTER");
# RRDs::tune(@tuneparams);
and replace them with
my(@tuneparams) = qw( $RRD
-d ds0:COUNTER -r ds0:input
-d ds1:COUNTER -r ds1:output );
RRDs::tune(@tuneparams);
You can also alter a .rrd file for "ordinary" use with NRG
(like above) at the command line like so:
rrdtool tune gauge.rrd -d ds0:COUNTER -r ds0:input \
-d ds1:COUNTER -r ds1:output