snmptrapd fails to decode certain SNMPv1 traps

Bug #701451 reported by Morten Brekkevold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
High
Morten Brekkevold

Bug Description

snmptrapd will fail to decode some SNMPv1 traps. This appears to have been introduced in NAV 3.6, with the rewritten TrapListener for PySNMP-SE.

This is the traceback from the log:

[2011-01-11 11:31:21,469] [ERROR] [pid=2418 nav.snmptrapd.agent_se] Unknown exception while decoding snmp trap packet from ('10.0.0.42', 31252), ignoring trap
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/nav/snmptrapd/agent_se.py", line 120, in listen
    trap = self._decode(request, src)
  File "/var/lib/python-support/python2.5/nav/snmptrapd/agent_se.py", line 67, in _decode
    snmp_trap_oid, generic_type = transform(pdu)
  File "/var/lib/python-support/python2.5/nav/snmptrapd/agent_se.py", line 144, in transform
    snmp_trap_oid = enterprise + [0] + pdu.apiAlphaGetSpecificTrap().get()
TypeError: can only concatenate list (not "int") to list

The last element of the concatenation is an int, not a list, which is what causes this.

Tags: snmptrapd
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Confirmed → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.