Page 1 of 1

Can't Locate Nagios/Plugins.pm

Posted: Thu Apr 28, 2016 6:55 am
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.

Re: Can't Locate Nagios/Plugins.pm

Posted: Thu Apr 28, 2016 7:49 am
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.

Re: Can't Locate Nagios/Plugins.pm

Posted: Thu Apr 28, 2016 9:50 am
by hsmith
What's the output of this command?

Code: Select all

find / -name Plugins.pm

Re: Can't Locate Nagios/Plugins.pm

Posted: Thu Apr 28, 2016 10:01 am
by lmiltchev
Try running:

Code: Select all

yum -y install perl-Nagios-Plugin

Re: Can't Locate Nagios/Plugins.pm

Posted: Fri Apr 29, 2016 1:43 am
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.

Re: Can't Locate Nagios/Plugins.pm

Posted: Fri Apr 29, 2016 10:02 am
by rkennedy
Great! Closing this one up.