OK, I think my centos install must be hosed.  When I run the command that you 
suggested, I get a blank line. Not that it can't find the module, just a 
blank line.

The weird thing is that I have installed the RPMs from the centos site 
(net-snmp-utils-5.1.2-11.EL4.6.i386.rpm, net-snmp-perl-5.1.2-11.EL4.6.i386.rpm, 
net-snmp-libs-5.1.2-11.EL4.6.i386.rpm, net-snmp-devel-5.1.2-11.EL4.6.i386.rpm, 
and net-snmp-5.1.2-11.EL4.6.i386.rpm) and still it doesn't work...

uname -a
Linux mrtg.ndtel.com 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 08:14:29 CDT 2006 
i686 athlon i386 GNU/Linux

cat /etc/redhat-release
CentOS release 4.3 (Final)

I am running an older version of centos, but these scripts are much older than 
my release, so if they work on centos 5x they sure should work on 
centos 4.x.  I am starting to feel that the Perl stuff on my server is not 
finding all of the software installed; is there an easy way to tell Perl to 
search and catalog all the software on the system?  I know that some of the 
SNMP software is working, as we are running MRTG on the same server and it 
is  having no difficulty talking to the routers, but that may come with the 
MRTG software, I can't remember.

Thanks for the help!


Jim Trocki wrote:
> On Thu, 27 Dec 2007, Alex Moen wrote:
> 
>> It was in the contribs area... Copyright (C) 1998, Brian Moore 
>> <[EMAIL PROTECTED]>, modified July 2000 by Ed Ravin <[EMAIL PROTECTED]>
> 
> Oh, well then that looks the same as the snmp_interface.monitor in the 
> contrib.
> Maybe someone renamed it at some point on your end or maybe elsewhere, 
> but I've
> never seen it called that.
> 
> Anyway, you said "snmpvar.monitor also exhibits this behavior", so I 
> just tried
> it on stock CentOS 5 and Fedora Core 6 installations I have in front of me
> here, and it worked properly.  I also tried the snmp_interface.monitor 
> and I
> didn't see the error you reported about it not finding SNMP::Session. I 
> also
> recall testing the snmpvar.monitor which ships with mon-1.2.0 (obtained 
> from
> the contrib repository anyway) on a SLES 10 installation this summer and 
> it was
> fine.
> 
> Here's the version of the perl module from centos/rhel5:
> 
> Name        : net-snmp-perl                Relocations: (not relocatable)
> Version     : 5.3.1                             Vendor: CentOS
> Release     : 19.el5_1.3                    Build Date: Tue 18 Dec 2007 
> 06:47:56 PM EST
> 
> What's yours? You could find out this way as well:
> 
> $ perl -MSNMP -e 'print $SNMP::VERSION, "\n"'
> 5.0301
> 
> Be sure to use the same path to perl as the one the script is using.

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to