SendTrap
Send an SNMP trap (event)
Constructs and sends an SNMP v1/v2c/v3 trap to a manager (host: port).
type: "io.kestra.plugin.snmp.SendTrap"Examples
Send SNMP v2c trap on error
    id: snmp-trap-on-failure
    namespace: monitoring
    tasks:
      - id: risky
        type: io.kestra.plugin.scripts.shell.Commands
        commands:
          - 'exit 1'
    errors:
      - id: send-trap
        type: io.kestra.plugin.snmp.SendTrap
        host: "snmp.manager.local"
        port: 162
        snmpVersion: "v2c"
        community: "public"
        trapOid: "1.3.6.1.4.1.8072.2.3.0.1"
        bindings:
          - oid: "1.3.6.1.2.1.1.3.0"
            value: "12345"
          - oid: "1.3.6.1.4.1.8072.2.3.2.1"
            value: "FAILED"
Properties
trapOid *Requiredstring
Trap OID
Object identifier for the trap type
community string
Community (v1/v2c)
host string
localhostTarget host
Hostname or IP of the SNMP manager
port integerstring
162Target port
UDP port of the SNMP manager (default 162)
snmpVersion string
v2cSNMP Version
One of v1, v2c, v3
timeoutMs integerstring
1500Timeout (ms)
Send timeout for internal operations
v3 AbstractSnmpTask-V3Securitystring
SNMPv3 security settings
Definitions
io.kestra.plugin.snmp.AbstractSnmpTask-V3Security
username *Requiredstring
1Username
authPassword string
Auth password
authProtocol string
Auth protocol
MD5, SHA, SHA224, SHA256, SHA384, SHA512
privPassword string
Privacy password
privProtocol string
Privacy protocol
DES, AES128, AES192, AES256
io.kestra.plugin.snmp.AbstractSnmpTask-VarBind
oid *Requiredstring
1OID
OID of the variable binding (e.g. 1.3.6.1.2.1.1.3.0)
value *Requiredstring
Value
String value to send for this OID