Hi All,

I had a quick search throught the archives and found a few references to this problem but i could not find any solutions that worked for me.

First up, I installed net-snmp on a Gentoo linux box, I am using version:

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


I have a verry basic config file:

# cat /etc/snmp/snmpd.conf
com2sec local     127.0.0.1/32    public
com2sec local     203.89.230.138/29   public

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

syslocation     Melbourne, Australia
syscontact      Hurgh <[EMAIL PROTECTED]>

and then i just started the demon.

If I do a:

snmpwalk -v 1 -c public localhost

I get a lot of information but at the moment all i am interested in getting to work is the interfaces.

Here is the relevent info:

# snmpwalk -v 1 -c public localhost if
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:80:ad:4:bd:7b
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifInOctets.1 = Counter32: 2261300
IF-MIB::ifInOctets.2 = Counter32: 1282336664
IF-MIB::ifInUcastPkts.1 = Counter32: 28780
IF-MIB::ifInUcastPkts.2 = Counter32: 4901958
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 1531088
IF-MIB::ifOutOctets.1 = Counter32: 2262486
IF-MIB::ifOutOctets.2 = Counter32: 3276685916
IF-MIB::ifOutUcastPkts.1 = Counter32: 28796
IF-MIB::ifOutUcastPkts.2 = Counter32: 6698910
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 4
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero

Now if you notice above IF2 is down:

IF-MIB::ifOperStatus.2 = INTEGER: down(2)

yet in real life it is up and working fine:

eth0      Link encap:Ethernet  HWaddr 00:80:AD:04:BD:7B
          inet addr:203.89.230.138  Bcast:203.89.230.143  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:4902033 errors:1531109 dropped:0 overruns:2 frame:1
          TX packets:6698980 errors:4 dropped:0 overruns:4 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1282347193 (1222.9 Mb)  TX bytes:3276712257 (3124.9 Mb)
          Interrupt:5 Base address:0xec00


Is there any way to make this UP so that my MRTG graphs will draw, cause at the moment, it looks at it, sees that it is "down" and just skips it..

Any help with this would be great, and if you need any more information than what has been provided please let me know.

Regards

-Hurgh-


Reply via email to