<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Martin Fontanez <jdmfontz@yahoo.com><BR>Subject: Can't locate Net/SNMP.pm in @INC When Running check_ifstatus<BR>To: Nagios-users@lists.sourceforge.net<BR>Date: Monday, May 18, 2009, 3:46 PM<BR><BR>
<DIV id=yiv82798553>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>I am getting this error and not certain what gives.  Tried various solutions including creating a link to ../net dir but still get errors.  I did yum installs of relevant *snmp* packages.  Is there a standard fix for this error?</DIV>
<DIV> </DIV>
<DIV>1 - [root@localhost libexec]# ./check_ifstatus -H localhost<BR>Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .)
 at ./check_ifstatus line 39.<BR>BEGIN failed--compilation aborted at ./check_ifstatus line 39.<BR></DIV>
<DIV>2 - SNMP.pm is (not on @INC path, but created a link to ...Net/) on the following location: </DIV>
<DIV>[root@localhost libexec]# find / -name SNMP.pm<BR>/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/SNMP.pm<BR>[root@localhost libexec]#</DIV>
<DIV> </DIV>
<DIV>3 - Looks like I got relevant rpm installed:</DIV>
<DIV>[root@localhost libexec]# rpm -qa | grep -i snmp<BR>net-snmp-libs-5.3.2.2-5.el5<BR>net-snmp-perl-5.3.2.2-5.el5<BR>net-snmp-5.3.2.2-5.el5<BR>[root@localhost libexec]#<BR></DIV>
<DIV>4.  Edited the file ../check_ifconfig  and replaced "use Net::SNMP;" with use "SNMP;" but that created other errors.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></TD></TR></TBODY></TABLE><BR></DIV></BLOCKQUOTE></td></tr></table><br>