[Nagiosplug-help] Can't locate Net/SNMP.pm in @INC
SAMSON, AARON (ATTOPS)
rs1865 at att.com
Fri Sep 24 17:40:37 UTC 2010
You need to install the perl module Net::SNMP from CPAN...Here is the command:
#perl -MCPAN -e 'install Net::SNMP'
From: Jim Avery [mailto:jim at jimavery.me.uk]
Sent: Friday, September 24, 2010 1:31 PM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] Can't locate Net/SNMP.pm in @INC
On 24 September 2010 17:37, Leandro Roggerone
<leandro_roggerone at dmcwireless.com> wrote:
> Hi , dear all , Im using the check_ifstatus and
> check_snmp_procecess.pl plugins, but both give me the same response :
> "null" in the nagios interface, and i get the following from the command
> [lroggerone at mdz-dns2 libexec]$ ./check_snmp_process.pl -H 172.24.3.5 -C
> public -n http
> Can't locate Net/SNMP.pm in @INC (@INC contains:
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./check_snmp_process.pl line 21.
> BEGIN failed--compilation aborted at ./check_snmp_process.pl line 21.
> [lroggerone at mdz-dns2 libexec]$
> I have been reading some info about this issue but couldnt fix it. Im
> using centos 5.4 x86-64 and nagios 3.2.0
I think this just means it simply can't find the Net::SNMP perl
module. You probably need to install the relevant package. I'm not
familiar with Centos or RHEL, but expect you will find the information
you need in http://felipeferreira.net/?p=660
There is also a FAQ which refers to this problem at:
Personally I prefer to install perl modules using my distro's package
manger than via CPAN though. This is because I don't know much about
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Nagiosplugin-help