• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 988
  • Last Modified:

Net::SNMP Perl module?

Hello,

I am fairly new to Net-Snmp.  I use it on some Solaris servers to give me CPU, Memory, and Disk stats (for MRTG to use).  It also came pre-installed on my RedHat 3 server.  I use that server to run MRTG and BigBrother (network monitoring).

Anyway, one piece of BigBrother is a module that uses Perl to do some SNMP work.  The docs say:

"bb-xsnmp.pl requires the Net::SNMP Perl module include with the NetSNMP package formerly known as UCD-SNMP."

I am running...
snmpd -v

NET-SNMP version:  5.0.9
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

I know that's a slightly old version, but it came with RedHat, and is working so far, so I'd rather not upgrade unless needed.

Anyway when I try to run the perl module...
./bb-xsnmp.pl
Can't locate Net/SNMP.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .)
at ./bb-xsnmp.pl line 9.
BEGIN failed--compilation aborted at ./bb-xsnmp.pl line 9.

So it looks like it's having some trouble finding the perl SNMP module?  Was my version of Net-SNMP possibly not compiled with that option?  Or is it just something I have to add on?

Thanks,
0
shanepresley
Asked:
shanepresley
1 Solution
 
manav_mathurCommented:
you probably have to install Net::SNMP module.

perl -MCPAN -e 'shell'

will give you a command line interface. type
install Net::SNMP
0
 
shanepresleyAuthor Commented:
That did it, thanks!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now