Page 1 of 1

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

Posted: Wed Nov 09, 2016 5:10 am
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.

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

Posted: Wed Nov 09, 2016 7:19 am
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.

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

Posted: Wed Nov 09, 2016 12:15 pm
by mcapra
Thanks @rhassing!

@sunnynani4849 let us know if you have additional questions.