ListenTrapSNMP 2.4.0

Bundle
org.apache.nifi | nifi-snmp-nar
Description
Receives information from SNMP Agent and outputs a FlowFile with information in attributes and without any content
Tags
listen, snmp, trap
Input Requirement
FORBIDDEN
Supports Sensitive Dynamic Properties
false
  • Additional Details for ListenTrapSNMP 2.4.0

    ListenTrapSNMP

    Summary

    The ListenTrapSNMP processor listens for incoming SNMP traps and generates a FlowFile from the received Protocol Data Unit (PDU). It supports SNMPv1, SNMPv2c, and SNMPv3, utilizing the SNMP4J library.

    When configured to use SNMPv3, SNMPv1 and SNMPv2c are automatically disabled. As a result, traps using SNMPv1 or SNMPv2c message models will not be received or processed. This is done to enforce a higher level of security, as SNMPv1 and SNMPv2c transmit community strings in plaintext, making them vulnerable to interception and unauthorized access.

    For SNMPv3, security is based on a User-Based Security Model (USM). The ‘USM Users Input Method’ property allows users to configure the USM user database in different ways. Below is an example JSON file defining two users as “Json Content”:

    [
      {
        "securityName": "user1",
        "authProtocol": "HMAC384SHA512",
        "authPassphrase": "authPassphrase1",
        "privProtocol": "AES192",
        "privPassphrase": "privPassphrase1"
      },
      {
        "securityName": "user2",
        "authProtocol": "HMAC192SHA256",
        "authPassphrase": "authPassphrase2",
        "privProtocol": "AES256",
        "privPassphrase": "privPassphrase2"
      }
    ]
    
Properties
Relationships
Name Description
failure All FlowFiles that cannot received from the SNMP agent are routed to this relationship
success All FlowFiles that are received from the SNMP agent are routed to this relationship
Writes Attributes
Name Description
snmp$* Attributes retrieved from the SNMP response. It may include: snmp$errorIndex, snmp$errorStatus, snmp$errorStatusText, snmp$nonRepeaters, snmp$requestID, snmp$type, snmp$variableBindings