[Nagiosplug-help] Can't locate Net/SNMP.pm in @INC

O'Brien, Kevin Kevin.OBrien at am.sony.com
Fri Sep 24 20:24:12 CEST 2010


Or you can install it from EPEL:

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# yum install perl-Net-SNMP

-=Kevin=-


-----Original Message-----
From: SAMSON, AARON (ATTOPS) [mailto:rs1865 at att.com] 
Sent: Friday, September 24, 2010 10:41 AM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] Can't locate Net/SNMP.pm in @INC

You need to install the perl module Net::SNMP from CPAN...Here is the command:

#perl -MCPAN -e 'install Net::SNMP'

-----Original Message-----
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
> line:
>
> [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/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /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:

 http://nagios.manubulon.com/faq.html#FAQ1

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
perl!

hth,

Jim

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: 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 Help mailing list