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

Jim Avery jim at jimavery.me.uk
Fri Sep 24 19:31:23 CEST 2010


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




More information about the Help mailing list