[mrtg] integrating rrdtool with MRTG on Solaris 10

Steve Shipway s.shipway at auckland.ac.nz
Fri Sep 5 01:29:54 CEST 2008


This error message is telling you that MRTG is not able to find the RRDs.so part (the loadable object module) of the RRDs.pm module.

I've just examined the rrdtool package as distributed by sunfreeware, and it contains:

1 d none rrdtool-1.2.19/lib/perl 0755 bin bin
1 d none rrdtool-1.2.19/lib/perl/5.8.7 0755 bin bin
1 f none rrdtool-1.2.19/lib/perl/5.8.7/RRDp.pm 0444 bin bin 5045 15643 1174804915
1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris 0755 bin bin
1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/RRDs.pm 0444 bin bin 3847 59052 1174804915
1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto 0755 bin bin
1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp 0755 bin bin
1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp/.packlist 0644 bin bin 97 7916 1174804915
1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ntmake.pl 0444 bin bin 121530114 1174804915
1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/perllocal.pod 0644 bin bin 684 48533 1174804915

This shows it is MISSING the rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDs directory and contents!  In other words, the package as distributed by sunfreeware is incorrect and not created right.  It has the perl library RRDs.pm but not the object module it depends on.  In other words, its useless if you want to use the RRDs perl library, although the rrdtool executable will be just fine.

Sadly, in this case, the only course of action is to compile it yourself from source code, and install.  If I get the chance I might be able to try and create the missing file rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDs/RRDs.so (and RRDs.bs) on our system and make it available, but its awkward because it requires compilation with exactly the same parameters to be compatible.

I've never actually installed this package under solaris10 so I hadn't spotted the error in it before.

Steve

I added these lines to my mrtg.cfg

PathAdd: /usr/local/rrdtool-1.2.19/bin
LibAdd: /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/
LogFormat: rrdtool

and got the error::
Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ /usr/local/mrtg-2/bin/../lib/mrtg2 /usr/local/mrtg-2/bin /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at /usr/local/mrtg-2/bin/mrtg line 342
Compilation failed in require at /usr/local/mrtg-2/bin/mrtg line 342



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080905/c8a2467f/attachment-0001.html 


More information about the mrtg mailing list