Camel
  1. Camel
  2. CAMEL-5270

Add community and peer address of SNMP TRAP PDUs to camel-snmp header

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.10.0
    • Component/s: camel-snmp
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      A patch is included to add the community and peer address of SNMP traps that are received by camel. This is useful to determine where a trap originated from, as not all SNMPv2 traps include an OID that identifies the sender.

      The information is placed in the message header as strings with names:
      securityName
      peerAddress

      These names correspond to the accessor names in the snmp4j API for the CommandResponderEvent class. securityName is not the correct name for SNMP v1/2 traps, but it's probably better to stick with a name that can be consistant between SNMP versions.

        Activity

        Hide
        Willem Jiang added a comment -

        Applied patch with thanks to Jonathan, I also updated the camel SNMP wiki page for new enhancement.

        Show
        Willem Jiang added a comment - Applied patch with thanks to Jonathan, I also updated the camel SNMP wiki page for new enhancement.

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Jonathan Barber
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development