I have a question regarding SNMP traps, there are some values which I would like to add to the trigger name. Right now, incoming traps look like following:
I want to use the value ABC self-test start for email notification. I read a lot about regex within macro functions and Item Preprocessing but not sure if this is the way to do it, I am a little bit stuck. Can anyone give me a hint
Thanks
Code:
09:18:33 2019/06/19 PDU INFO: notificationtype TRAP version 0 receivedfrom UDP: [192.168.1.150]:56281->[192.168.1.131]:162 errorstatus 0 messageid 0 community public transactionid 93 errorindex 0 requestid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (16796568) 1 day, 22:39:25.68 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.935.0.51 SNMPv2-SMI::enterprises.935 type=4 value=STRING: "ABC self-test start" SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 192.168.1.150 SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public" SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: SNMPv2-SMI::enterprises.935
Thanks