[mrtg] cfgmaker generates wrong config for OpenBSD

Steve Shipway s.shipway at auckland.ac.nz
Wed Sep 29 09:50:28 CEST 2010


Looks like the fault is with your SNMP daemon.  Here's the sections form the SNMPwalk:

IF-MIB::ifDescr.1 = STRING: lo0
IF-MIB::ifDescr.2 = STRING: em0
IF-MIB::ifDescr.3 = STRING: em1
IF-MIB::ifDescr.4 = STRING: em2
IF-MIB::ifDescr.5 = STRING: em3
IF-MIB::ifDescr.6 = STRING: enc0
IF-MIB::ifDescr.7 = STRING: pfsync0
IF-MIB::ifDescr.8 = STRING: pflog0
IF-MIB::ifDescr.9 = STRING: carp0
IF-MIB::ifDescr.10 = STRING: carp1
IF-MIB::ifDescr.11 = STRING: carp2

IP-MIB::ipAdEntIfIndex.10.100.102.235 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.172.16.0.235 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.172.16.1.235 = INTEGER: 3
IP-MIB::ipAdEntIfIndex.192.168.56.1 = INTEGER: 4
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 6
IP-MIB::ipAdEntIfIndex.10.100.102.239 = INTEGER: 7
IP-MIB::ipAdEntIfIndex.172.16.0.239 = INTEGER: 8
IP-MIB::ipAdEntIfIndex.172.16.1.239 = INTEGER: 9

So the SNMP agent really is reporting the wrong IfIndex/IP association -- eg, IfIndex 1 (lo0) should be 127.0.0.1, but the ipAdEntIfIndex links it to 10.100.102.235.

See if you can get an updated SNMP daemon, or if your machine is doing something weird to the networking stack after the SNMP daemon has loaded (try making the SNMP daemon start last of all?)

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487



More information about the mrtg mailing list