Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate Nagios/Plugin.pm in @INC #25

Closed
wj2369 opened this issue Apr 19, 2017 · 3 comments
Closed

Can't locate Nagios/Plugin.pm in @INC #25

wj2369 opened this issue Apr 19, 2017 · 3 comments

Comments

@wj2369
Copy link

wj2369 commented Apr 19, 2017

I tried to execute the plugin but got error as following, just went through the net but with no luck, can anyone give any suggestion?

[root@nagioscore4 check_json-master]# ./check_json.pl -u https://store.ceair.com/mas/sdk10098/public/ydkbwszb/checkCode2
Can't locate Nagios/Plugin.pm in @inc (@inc contains: /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /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_json.pl line 8.
BEGIN failed--compilation aborted at ./check_json.pl line 8.

I didn't modified anything in the plugin "check_json.pl", if anything should be amended inside? thank you!

@c-kr
Copy link
Owner

c-kr commented Apr 25, 2017

You need to install the perl module Nagios::Plugin (using CPAN or your distros packet manager. Debians package name is libnagios-plugin-perl)

@bornakke
Copy link

bornakke commented Mar 5, 2019

Libnagios-plugin-perl is not avaible in last ubuntu. Seem to have been replaced by Monitor:: pluing (https://metacpan.org/pod/Nagios::Plugin), but I have very limited knowledge on perl so it is difficult to understand the consequences. Any suggestions?

@bunnybravoo
Copy link

thats why its not working in centos new distribution also . so what is the solution for the new version of pl scripts
......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants