Re: perhaps you forgot to load "SNMP::Session"?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 27/12/2007, Alex Moen <[email protected]> wrote: > I am using the "mon" monitoring program, and one of the monitors > requires the use of the Net::SNMP module. Does it require the "Net::SNMP" module, or the "Net-SNMP" module? As Mike has indicated, these are different perl modules. > Can't locate object method "new" via package "SNMP::Session" That object is part of the "Net-SNMP" module. > Other solutions have suggested that I run perl -MSNMP, but that is > giving a strange output, being blank: > > /usr/bin/perl -MSNMP -e 'print $SNMP::VERSION, "\n"' Hmmm... I get: $ /usr/bin/perl -MSNMP -e 'print $SNMP::VERSION, "\n";' 5.0301 as expected. > Here are some system details: > [root@mrtg mon.d]# cat /etc/redhat-release > CentOS release 4.3 (Final) I'm not familiar with CentOS, but assuming it's a reasonably standard Linux distribution, I would expect it to have the 'locate' command. What does locate SNMP.pm report? Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users