Can't locate Nagios/Plugin.pm on fedora 14

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
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Can't locate Nagios/Plugin.pm on fedora 14

Post by sunnynani4849 »

Hi Team,

I am facing an issue while running the check_hpacucli on fedora 14. Please find the below error and suggest what needs to be done for this.

nagios@rottweiler /home/nagios/libexec> ./check_hpacucli
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at ./check_hpacucli line 46.
BEGIN failed--compilation aborted at ./check_hpacucli line 46.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Can't locate Nagios/Plugin.pm on fedora 14

Post by rhassing »

If you add the Epel repository you should be able to do:

Code: Select all

sudo yum install perl-Nagios-Plugin
This would install the needed perl module.

If it is still not found, you can check where the Utils.pm is installed with:

Code: Select all

rpm -ql perl-Nagios-Plugin
And you can add one line in the plugin:

Code: Select all

use lib '/usr/share/perl5/vendor_perl/Nagios/';
Or to the path which was found.
Rob Hassing
Image
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Can't locate Nagios/Plugin.pm on fedora 14

Post by mcapra »

Thanks @rhassing!

@sunnynani4849 let us know if you have additional questions.
Former Nagios employee
https://www.mcapra.com/
Locked