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

Net::SNMP Perl module?


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...
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 /usr/lib/perl5/site_perl
/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?

1 Solution
you probably have to install Net::SNMP module.

perl -MCPAN -e 'shell'

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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