Page 1 of 1

Can't locate Nagios/Plugin.pm

Posted: Fri Sep 12, 2014 4:20 am
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

Re: Can't locate Nagios/Plugin.pm

Posted: Fri Sep 12, 2014 9:20 am
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/