Can't Locate Nagios/Plugins.pm

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Can't Locate Nagios/Plugins.pm

Post by Bone8Head »

Hello,

after I reinstalled Nagios Core on a New Centos 6.7 VM, some of my plugins get this error:

Image

Code: Select all

[root@nagioscorefx libexec]# ./check_esx3-0.5.pl
Can't locate Nagios/Plugins.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_esx3-0.5.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3-0.5.pl line 31.
I think that some PERL Modules or something like that are missing on my System (P.S.: my plugins are located in the /usr/local/nagios/libexec/ folder).
Someone know what should I download?

Thank you.
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Can't Locate Nagios/Plugins.pm

Post by Bone8Head »

I resolved the "SNMP Plugin error" with installing some SNMP modules on Centos.

Now I have only the error with Nagios/Plugins.pm.
Don't know what is this "Nagios/Plugins.pm.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Can't Locate Nagios/Plugins.pm

Post by hsmith »

What's the output of this command?

Code: Select all

find / -name Plugins.pm
Former Nagios Employee.
me.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Can't Locate Nagios/Plugins.pm

Post by lmiltchev »

Try running:

Code: Select all

yum -y install perl-Nagios-Plugin
Be sure to check out our Knowledgebase for helpful articles and solutions!
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Can't Locate Nagios/Plugins.pm

Post by Bone8Head »

lmiltchev wrote:Try running:

Code: Select all

yum -y install perl-Nagios-Plugin
After I install the Plugin/Nagios it seems ok.
Also, I installed the develepoment tools of Centos. Don't know actually if it helps.

Thank you. You can close the Thread.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can't Locate Nagios/Plugins.pm

Post by rkennedy »

Great! Closing this one up.
Former Nagios Employee
Locked