SNMP.pm Solution/problem

Subhendu Ghosh sghosh at sghosh.org
Wed Aug 21 15:50:14 CEST 2002


Sorry - perl modules rarely come as an rpm.

download Net::SNMP modules from CPAN
http://www.perl.com/CPAN/modules/by-authors/id/D/DT/DTOWN/

gunzip, untar

follow the INSTALL instructions.


Or as root on your system, run the following..

perl -MCPAN -e "install Net::SNMP"

Note: current version of Net::SNMP (v4.0.x) requires Perl 5.6.  If you are 
using a older Perl, you can use Net::SNMP v3.65.  

-sg


On Tue, 20 Aug 2002, Kaufman, Michael wrote:

> OK. I still am confused.  I am trying to get SNMP.pm, I am not a linux
> person overall, so I am looking for a rpm that I can install and get it to
> work on redhat 7.3.  anyone have any ideas.  I'm just about out of hair to
> pull.  I need it for the check_ifstatus and check_snmp.
> 
> thanks
> 
> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
> Sent: Saturday, August 10, 2002 9:07 AM
> To: chris.whipple at hq.com
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] SNMP.pm Solution
> 
> On Fri, 9 Aug 2002 chris.whipple at hq.com wrote:
> 
> > 
> > Hi All,
> > 
> > Just thought I'd dispense some advice that I had to find out the hard way.
> > 
> > The net-snmp-5.0.3 package - that includes snmpd - comes with SNMP.pm
> > v4.2.0.  This combination doesn't seem to work with the SNMP-based
> > nagios-plugins(v1.3b1).
> > 
> > As suggested off-list by Subhendu Ghosh, I went to CPAN and grabbed
> > Net::SNMP v4.0.2 and that seemed to do the trick.
> > 
> > This might be old news to some, but it threw me for a loop.  
> > 
> > Thanks for your help, Subhendu!
> > 
> > -chris.
> > 
> 
> Just to clarify at little more:
> 
> net-snmp used to be known as ucd-snmp and the perl interface to that 
> package is SNMP.  This is a perl interface to the C package.
> 
> Net::SNMP by David Town is a all perl module that does not support MIB 
> parsing.
> 
> check_snmp uses snmpget binary that is a part of net-snmp package because 
> it needs the ability to do MIB parsing. (Allows you to specify oids by 
> name)
> 
> check_ifstatus and check_ifoperstatus use the Net::SNMP module as they 
> don't need to do any MIB parsing and avoind the overhead of calling an 
> external program. 
> 
> 
> -sg
> 
> 
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list