Page 1 of 3
Can't locate Nagios/Plugin.pm in @INC
Posted: Mon Oct 20, 2014 11:47 pm
by braindope
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_esx.pl line 32.
BEGIN failed--compilation aborted at ./check_esx.pl line 32.
can anyone help on the error above

, im trying to un check_esx.pl checks on nagios and i can't seem to make it work, i've try to search over the net, still no luck finding any solutions

. Thanks in advance
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Tue Oct 21, 2014 1:11 pm
by tmcdonald
I see you're running this on Nagios Core, so let's try to install that plugin:
Code: Select all
perl -MCPAN -e 'install Nagios::Plugin'
You may have to hit enter a few times through the install process. If this does not work, show me the last few lines before it fails and we'll go from there.
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Thu Oct 23, 2014 1:55 am
by braindope
Hi Sir, please see below error, hope you can help me, thanks
FAILED--81 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Running install for module Config::Tiny
Running make for R/RS/RSAVAGE/Config-Tiny-2.20.tgz
LWP not available
Trying with "/usr/bin/links -source" to get
http://www.cpan.org/authors/id/R/RS/RSA ... y-2.20.tgz
Trying with "/usr/bin/links -source" to get
http://www.cpan.org/authors/id/R/RS/RSAVAGE/CHECKSUMS
Checksum mismatch for distribution file. Please investigate.
Distribution id = R/RS/RSAVAGE/Config-Tiny-2.20.tgz
CPAN_USERID RSAVAGE (Ron Savage <
[email protected]>)
CALLED_FOR Config::Tiny
CONTAINSMODS Config::Tiny
MD5_STATUS
incommandcolor 1
localfile /root/.cpan/sources/authors/id/R/RS/RSAVAGE/Config-Tiny-2.20.tgz
I'd recommend removing
/root/.cpan/sources/authors/id/R/RS/RSAVAGE/Config-Tiny-2.20.tgz. Its MD5
checksum is incorrect. Maybe you have configured your 'urllist' with
a bad URL. Please check this array with 'o conf urllist', and
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Thu Oct 23, 2014 8:15 am
by eloyd
You are way deep in the woods of Perl at this point. Try these steps, logged in as root:
Code: Select all
rm -Rf ~/.cpan
perl -MCPAN -e shell
reload index
exit
perl -MCPAN -e "upgrade /(.\*)/"
Depending on what specific version of Perl you have installed, that last line may not work. Let me know if it doesn't. If it does work, this will update all of your CPAN/Perl modules. It looks like you've got some things out of whack.
Then you can go back to what Trevor suggested.
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Thu Oct 23, 2014 2:36 pm
by abrist
You may also find this package in yum (epel) (or other package managers/repos):
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Fri Oct 24, 2014 9:30 pm
by braindope
eloyd wrote:You are way deep in the woods of Perl at this point. Try these steps, logged in as root:
Code: Select all
rm -Rf ~/.cpan
perl -MCPAN -e shell
reload index
exit
perl -MCPAN -e "upgrade /(.\*)/"
Depending on what specific version of Perl you have installed, that last line may not work. Let me know if it doesn't. If it does work, this will update all of your CPAN/Perl modules. It looks like you've got some things out of whack.
Then you can go back to what Trevor suggested.
Hi Sir, the last line didn't work for me, can you further guide in my problem?
"syntax error at -e line 1, near "(."
Execution of -e aborted due to compilation errors."
Thank you very much for helping,
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Mon Oct 27, 2014 10:08 am
by abrist
What linux distro are you running?
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Mon Oct 27, 2014 6:27 pm
by braindope
abrist wrote:What linux distro are you running?
Hi sir i'm running "CentOS release 5.6 (Final)"
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Tue Oct 28, 2014 9:29 am
by abrist
Did you try installing from through yum?
Re: Can't locate Nagios/Plugin.pm in @INC
Posted: Tue Oct 28, 2014 7:10 pm
by braindope
abrist wrote:Did you try installing from through yum?
Hello, when I try "yum install perl-Nagios-Plugin" this error shows
http://dl.fedoraproject.org/pub/epel/6/ ... sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/0d0cd801e6712f03b0fc7e9b83af923d4b609b69bd602d247d45a107d0da7722-primary.sqlite.bz2 from Perl: [Errno 256] No more mirrors to try.