| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| MRTG with RRD not finding RRDS.pm http://www.steveshipway.org/forum/viewtopic.php?f=11&t=4285 |
Page 1 of 1 |
| Author: | raggmopp [ Thu Jan 13, 2011 6:50 am ] |
| Post subject: | MRTG with RRD not finding RRDS.pm |
Hi all: Got a RH 5.5 system. Just installed MRTG, the rrdtool is at 1.4.4 Did the install and followed the config instructions, went well. When I run the MRTG trying to look at the interfaces on another RH 5.5 system, nothing shows but a blank page. Looking at Configuration Verification page shows the error; RRDs library NOT FOUND. This may however not be a problem if the library path is amended by the LibAdd birective in the MRTG files. Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/rrdtools/lib/perl/ /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/cgi-bin/routers2.cgi line 8688 Compilation failed in require at /usr/local/nagios/cgi-bin/routers2.cgi line 8688. GD library not required as operating in StyleSheet mode" When I check to see what modules are in INC using the command perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find {wanted =>sub {print canonpath $_ if /\.pm\z/}, no_chdir =>1}, @INC' | grep -i rrds shows the module is loaded. /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/RRDs.pm I modified the cfg file to and LibAdd to the above PATH. (I would like to see it under /usr/local/rrdtools/lib/perl) but no graph, just a blank white page under Systems Monitor. Assistance is greatly appreciated. Thanks! |
|
| Author: | stevesh [ Thu Jan 13, 2011 9:23 am ] |
| Post subject: | Re: MRTG with RRD not finding RRDS.pm |
You have the RRDs.pm, but do you have the correct accompanying auto/RRDs/RRDs.so file? Try runing this: perl -e "use RRDs; print $RRDs::VERSION;" and see if it gives a clearer explanation of what is wrong. Often, when you get this message, you find that the problem is that RRDs is improperly installed (EG, someone copied over the RRDs.pm file manually, without the RRDs.so file, or has installed multiple versions in parallel) Try completely removing the RRDs files under the site_perl path, and instead using LibAdd to specify the location of the RRDTool install path (you can also use libadd in the[web] section of the routers2.conf file) |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|