Can't locate Nagios/Plugin.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
bhadre
Posts: 16
Joined: Mon May 26, 2014 10:07 pm

Can't locate Nagios/Plugin.pm

Post by bhadre »

Hi All,

Getting below error even though I have installed in nagios plugin module nagios-plugins-2.0.3

Can't locate Nagios/Plugin.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 .

Please let me know how to resolve.

Thanks,
Bhadregowda
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't locate Nagios/Plugin.pm

Post by tmcdonald »

Run the following command to locate your Plugin.pm file:

Code: Select all

find / -name Plugin.pm
If it is not located in one of those listed locations, copy it there and the plugin should work.

Which plugin is this? Can you either post it here or link to it? If it is a custom plugin you are working on and can't share, that is fine.

You might also just have a different layout and will need to alter the paths used:

http://viewsby.wordpress.com/2014/02/20 ... pm-in-inc/
Former Nagios employee
Locked