• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1134
  • Last Modified:

FC6, rrdtool, mrtg, perl error Can't locate auto/RRDs/last.al

I have installed rrdtool as well as mrtg and perl, however I'm getting the following error:

Can't locate auto/RRDs/last.al in @INC

I've read that I need to configure rrdtool with the "--enable-perl-site-install" which i did before make and make install, however I'm still getting the error - I don't have the last.al file, and do not know where to find it.  Is this something that is part of perl?  I installed perl using yum install perl.  Is there something else I am missing?

I am running Fedora Core 6.
0
JWeb Admin
Asked:
JWeb Admin
  • 7
  • 6
1 Solution
 
ezatonCommented:
Try installing the package
perl-rrdtool

Also, you better install (using yum) rrdtool from your repositories. Works better, and fills in dependencies.
0
 
JWeb AdminAuthor Commented:
I installed that package, I'm still getting the message:

"Can't locate auto/RRDs/last.al in @INC (@INC contains: /usr/local/ /usr/local/ /usr/lib/mrtg2/RRDs.pm/ /usr/local/rrdtool/ /usr/lib/mrtg2/ /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/cgi-bin/14all.cgi line 637"
0
 
ezatonCommented:
Check line 637 of /var/www/cgi-bin/14all.cgi
What does this file supposed to do?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
JWeb AdminAuthor Commented:
This is line 637.  I have also noticed that the file "last.al" does not exist on my server.

637:        my $lasttime = RRDs::last($rrd);
0
 
JWeb AdminAuthor Commented:
I'm also getting this error when trying to view a graph.  There has to be some package that I'm missing.

Can't locate auto/RRDs/graph.al in @INC (@INC contains: /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/i386-linux-thread-multi/ /usr/lib/perl5/5.8.8/ /usr/lib/mrtg2/RRDs.pm/ /usr/local/rrdtool/ /usr/lib/mrtg2/ /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/cgi-bin/14all.cgi line 555
0
 
ezatonCommented:
Please run 'updatedb' as root, and then 'locate RRDs' (notice the case)
0
 
JWeb AdminAuthor Commented:
I've done this already too, but here's the output:

[root@nagios ~]# locate RRDs
/rrdtool-1.2.23/bindings/perl-shared/RRDs.pm
/rrdtool-1.2.23/bindings/perl-shared/RRDs.xs
/rrdtool-1.2.23/doc/RRDs.html
/usr/lib/mrtg2/RRDs.pm
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/RRDs.pm
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/RRDs
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/.packlist
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.bs
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so
/usr/local/rrdtool-1.2.23/share/doc/rrdtool-1.2.23/html/RRDs.html
/usr/share/doc/rrdtool-perl-1.2.23/html/RRDs.html
/usr/share/man/man3/RRDs.3pm
/usr/share/man/man3/RRDs.3pm.gz
0
 
ezatonCommented:
Listen, I didn't have problems with MRTG nor with perl and RRD. I, however, have installed using the distro RPMs and using rpmforge (you will be able to reach there using http://dag.wieers.com/rpm , but I'm not sure it fits FC6). Could you remove your manually compiled packages and just install the right RPMs? This might just solve your problems.
0
 
JWeb AdminAuthor Commented:
Looks like these packages will work for FC6, but I'm unsure which packages I'd need at this point -

Could you tell me which packages you installed for a working MRTG / rrdtool / 14all.cgi solution?  I appreciate your help, I'm stumped with this one.
0
 
ezatonCommented:
I will check tomorrow.
0
 
JWeb AdminAuthor Commented:
OK thanks - I'll give you the points, try to let me know tomorrow then.
0
 
ezatonCommented:
I have looked at it a bit, and found out that:
Centos 4 Update 5 - it works correctly. I didn't bother building the config file, however, running the script manually, I was able to run it (it returned an error about the config file).

What version of MRTG do you have? What version of RRDTools?
0
 
ezatonCommented:
Another note - Your file locations seem weird:
/rrdtool-1.2.23 including perl modules?
/usr/lib/mrtg2/RRDs.pm ?
Look at the result of me running 'locate RRDs':
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/RRDs.pm
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.bs
/usr/share/man/man3/RRDs.3pm.gz
/usr/share/doc/rrdtool-1.2.23/docs/RRDs.html

Hope it helps.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now