[HELP] 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
gfesj69
Posts: 59
Joined: Fri Jan 03, 2014 10:04 am
Location: Brazil

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

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

You will need to install the Nagios::Plugin perl module as shown here on the plugins site:

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