Page 1 of 1

[HELP] Can't locate Nagios/Plugin.pm

Posted: Thu May 29, 2014 12:47 pm
by gfesj69
I just install new version Nagios Core 4.0.6 (CentOS 6.5) , and try to run a pearl plugin, but I receive this message.

Code: Select all

[root@NGS01 libexec]# ./check_asterisk_siptrunk.pl
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 .) at ./check_asterisk_siptrunk.pl line 15.
BEGIN failed--compilation aborted at ./check_asterisk_siptrunk.pl line 15.
How can we solve this?

Re: [HELP] Can't locate Nagios/Plugin.pm

Posted: Thu May 29, 2014 12:54 pm
by abrist
What distro are you running? You need to install the nagios::plugin perl library. If you are using rhel/centos and the epel repo, you should be able to unstall the perl module with:

Code: Select all

yum install perl-Nagios-Plugin 

Re: [HELP] Can't locate Nagios/Plugin.pm

Posted: Thu May 29, 2014 1:02 pm
by slansing
You will need to install the Nagios::Plugin perl module as shown here on the plugins site:

https://nagios-plugins.org/downloads/