Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4250

TableTracker failing in some instances

    Details

      Description

      The TableTracker seems some how to the the 'value' wrong when walking the IPAddrTable. Here is the result of a scan for a node...

      storeResult: org.opennms.netmgt.snmp.SnmpResult@3241fbe7[base=.1.3.6.1.2.1.2.2.1.9,instance=5,value=0]
      storeResult: org.opennms.netmgt.snmp.SnmpResult@22a6cf69[base=.1.3.6.1.2.1.4.20.1.1,instance=12.34.56.78,value=12.34.56.78]
      storeResult: org.opennms.netmgt.snmp.SnmpResult@605be49d[base=.1.3.6.1.2.1.4.20.1.2,instance=12.34.56.78,value=12.34.56.78]
      storeResult: org.opennms.netmgt.snmp.SnmpResult@388c62[base=.1.3.6.1.2.1.4.20.1.3,instance=12.34.56.78,value=12.34.56.78]
      storeResult: org.opennms.netmgt.snmp.SnmpResult@7efdcc72[base=.1.3.6.1.2.1.4.20.1.4,instance=12.34.56.78,value=12.34.56.78]
      java.lang.NumberFormatException: For input string: "12.34.56.78"
      at java.lang.NumberFormatException.forInputString(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at org.opennms.netmgt.snmp.snmp4j.Snmp4JValue.toInt(Snmp4JValue.java:185)
      at org.opennms.netmgt.provision.service.IPInterfaceTableTracker$IPInterfaceRow.getIfIndex(IPInterfaceTableTracker.java:82)
      at org.opennms.netmgt.provision.service.IPInterfaceTableTracker$IPInterfaceRow.createInterfaceFromRow(IPInterfaceTableTracker.java:113)
      at org.opennms.netmgt.provision.service.NodeScan$AgentScan$1.processIPInterfaceRow(NodeScan.java:417)
      at org.opennms.netmgt.provision.service.IPInterfaceTableTracker.rowCompleted(IPInterfaceTableTracker.java:159)
      at org.opennms.netmgt.snmp.SnmpTableResult.handleCompleteRows(SnmpTableResult.java:110)
      at org.opennms.netmgt.snmp.SnmpTableResult.storeResult(SnmpTableResult.java:86)
      at org.opennms.netmgt.snmp.TableTracker.storeResult(TableTracker.java:109)
      at org.opennms.netmgt.snmp.CollectionTracker.storeResult(CollectionTracker.java:84)
      at org.opennms.netmgt.snmp.ColumnTracker$1.processResponse(ColumnTracker.java:98)
      at org.opennms.netmgt.snmp.TableTracker$CombinedColumnResponseProcessor.processResponse(TableTracker.java:166)
      at org.opennms.netmgt.snmp.AggregateTracker$ChildTrackerResponseProcessor.processResponse(AggregateTracker.java:168)
      at org.opennms.netmgt.snmp.SnmpWalker.processResponse(SnmpWalker.java:199)
      at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker.access$600(Snmp4JWalker.java:63)
      at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker$Snmp4JResponseListener.processResponse(Snmp4JWalker.java:153)
      at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker$Snmp4JResponseListener.onResponse(Snmp4JWalker.java:180)
      at org.snmp4j.Snmp.processPdu(Snmp.java:1272)
      at org.snmp4j.MessageDispatcherImpl.fireProcessPdu(MessageDispatcherImpl.java:616)
      at org.snmp4j.MessageDispatcherImpl.dispatchMessage(MessageDispatcherImpl.java:287)
      at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:347)
      at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:309)
      at org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(AbstractTransportMapping.java:83)
      at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(DefaultUdpTransportMapping.java:365)
      at java.lang.Thread.run(Unknown Source)

      I have attached a MockSnmpAgent'able walk

        Attachments

          Activity

            People

            • Assignee:
              brozow Matt Brozowski
              Reporter:
              brozow Matt Brozowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: