Net::SNMP Perl module?

Posted on 2005-04-20
Last Modified: 2012-08-14

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:

" 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

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/ 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 ./ line 9.
BEGIN failed--compilation aborted at ./ 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?

Question by:shanepresley
    LVL 16

    Accepted Solution

    you probably have to install Net::SNMP module.

    perl -MCPAN -e 'shell'

    will give you a command line interface. type
    install Net::SNMP
    LVL 1

    Author Comment

    That did it, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now