Hi,
I try to work with SNMP Traps.
So i can receive SNMP Traps but now i want to close a problem if there is a recovery trap but i have no idea how to do this
For now i did create some items to sort the SNMP Traps for example:
Then i did create a trigger:
But i think i'm on the wrong way!
Now my question is, how to auto close a trigger when the recovery snmp trap is received?
Many thanks for your help
!
Regards,
Kevin
Fail SNMP Trap
Recovery SNMP Trap
I try to work with SNMP Traps.
So i can receive SNMP Traps but now i want to close a problem if there is a recovery trap but i have no idea how to do this

For now i did create some items to sort the SNMP Traps for example:
Name: SNMP Trap: Internet Link down
Key: snmptrap["path-monitor-failure"]
Key: snmptrap["path-monitor-failure"]
Name: SNMP Trap: Internet Link up
Key: snmptrap["path-monitor-recovery"]
Key: snmptrap["path-monitor-recovery"]
Name: Palo Alto Firewall Internet Link Down
Problem Expression: {CL04 Template Receive SNMP Trap Palo Alto:snmptrap["path-monitor-failure"].regexp(.*)}=1
Recovery Expression: {CL04 Template Receive SNMP Trap Palo Alto:snmptrap["path-monitor-recovery"].regexp(.*)}=1
Problem Expression: {CL04 Template Receive SNMP Trap Palo Alto:snmptrap["path-monitor-failure"].regexp(.*)}=1
Recovery Expression: {CL04 Template Receive SNMP Trap Palo Alto:snmptrap["path-monitor-recovery"].regexp(.*)}=1
Now my question is, how to auto close a trigger when the recovery snmp trap is received?
Many thanks for your help
!Regards,
Kevin
Fail SNMP Trap
11:06:48 2018/12/07 PDU INFO:
receivedfrom UDP: [10.2.128.9]:35229->[10.2.176.247]:162
errorstatus 0
version 1
requestid 1922816940
errorindex 0
notificationtype TRAP
community public
transactionid 40508
messageid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (424163633) 49 days, 2:13:56.33
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.25461.2.1.3.2.0.1551
SNMPv2-SMI::enterprises.25461.2.1.3.1.2 type=4 value=STRING: "2018/12/07 11:06:48"
SNMPv2-SMI::enterprises.25461.2.1.3.1.3 type=4 value=STRING: "010401003313"
SNMPv2-SMI::enterprises.25461.2.1.3.1.4 type=4 value=STRING: "SYSTEM"
SNMPv2-SMI::enterprises.25461.2.1.3.1.5 type=4 value=STRING: "routing"
SNMPv2-SMI::enterprises.25461.2.1.3.1.7 type=4 value=""
SNMPv2-SMI::enterprises.25461.2.1.3.1.8 type=70 value=Counter64: 981535
SNMPv2-SMI::enterprises.25461.2.1.3.1.9 type=4 value=STRING: "0x0"
SNMPv2-SMI::enterprises.25461.2.1.3.1.12 type=4 value=STRING: "C4FWSM03-01"
SNMPv2-SMI::enterprises.25461.2.1.3.1.300 type=4 value=STRING: "path-monitor-failure"
SNMPv2-SMI::enterprises.25461.2.1.3.1.301 type=4 value=STRING: "default"
SNMPv2-SMI::enterprises.25461.2.1.3.1.302 type=4 value=STRING: "general"
SNMPv2-SMI::enterprises.25461.2.1.3.1.303 type=2 value=INTEGER: 5
SNMPv2-SMI::enterprises.25461.2.1.3.1.304 type=4 value=STRING: "Path monitoring failed for static route destination 0.0.0.0/0 with next hop 212.117.121.81. Route removed."
receivedfrom UDP: [10.2.128.9]:35229->[10.2.176.247]:162
errorstatus 0
version 1
requestid 1922816940
errorindex 0
notificationtype TRAP
community public
transactionid 40508
messageid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (424163633) 49 days, 2:13:56.33
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.25461.2.1.3.2.0.1551
SNMPv2-SMI::enterprises.25461.2.1.3.1.2 type=4 value=STRING: "2018/12/07 11:06:48"
SNMPv2-SMI::enterprises.25461.2.1.3.1.3 type=4 value=STRING: "010401003313"
SNMPv2-SMI::enterprises.25461.2.1.3.1.4 type=4 value=STRING: "SYSTEM"
SNMPv2-SMI::enterprises.25461.2.1.3.1.5 type=4 value=STRING: "routing"
SNMPv2-SMI::enterprises.25461.2.1.3.1.7 type=4 value=""
SNMPv2-SMI::enterprises.25461.2.1.3.1.8 type=70 value=Counter64: 981535
SNMPv2-SMI::enterprises.25461.2.1.3.1.9 type=4 value=STRING: "0x0"
SNMPv2-SMI::enterprises.25461.2.1.3.1.12 type=4 value=STRING: "C4FWSM03-01"
SNMPv2-SMI::enterprises.25461.2.1.3.1.300 type=4 value=STRING: "path-monitor-failure"
SNMPv2-SMI::enterprises.25461.2.1.3.1.301 type=4 value=STRING: "default"
SNMPv2-SMI::enterprises.25461.2.1.3.1.302 type=4 value=STRING: "general"
SNMPv2-SMI::enterprises.25461.2.1.3.1.303 type=2 value=INTEGER: 5
SNMPv2-SMI::enterprises.25461.2.1.3.1.304 type=4 value=STRING: "Path monitoring failed for static route destination 0.0.0.0/0 with next hop 212.117.121.81. Route removed."
11:04:30 2018/12/07 PDU INFO:
notificationtype TRAP
errorindex 0
requestid 1922816939
version 1
receivedfrom UDP: [10.2.128.9]:48859->[10.2.176.247]:162
errorstatus 0
messageid 0
community public
transactionid 40484
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (424149843) 49 days, 2:11:38.43
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.25461.2.1.3.2.0.1552
SNMPv2-SMI::enterprises.25461.2.1.3.1.2 type=4 value=STRING: "2018/12/07 11:04:30"
SNMPv2-SMI::enterprises.25461.2.1.3.1.3 type=4 value=STRING: "010401003313"
SNMPv2-SMI::enterprises.25461.2.1.3.1.4 type=4 value=STRING: "SYSTEM"
SNMPv2-SMI::enterprises.25461.2.1.3.1.5 type=4 value=STRING: "routing"
SNMPv2-SMI::enterprises.25461.2.1.3.1.7 type=4 value=""
SNMPv2-SMI::enterprises.25461.2.1.3.1.8 type=70 value=Counter64: 981528
SNMPv2-SMI::enterprises.25461.2.1.3.1.9 type=4 value=STRING: "0x0"
SNMPv2-SMI::enterprises.25461.2.1.3.1.12 type=4 value=STRING: "C4FWSM03-01"
SNMPv2-SMI::enterprises.25461.2.1.3.1.300 type=4 value=STRING: "path-monitor-recovery"
SNMPv2-SMI::enterprises.25461.2.1.3.1.301 type=4 value=STRING: "default"
SNMPv2-SMI::enterprises.25461.2.1.3.1.302 type=4 value=STRING: "general"
SNMPv2-SMI::enterprises.25461.2.1.3.1.303 type=2 value=INTEGER: 5
SNMPv2-SMI::enterprises.25461.2.1.3.1.304 type=4 value=STRING: "Path monitoring for static route destination 0.0.0.0/0 with next hop 212.117.121.81 recovered. Route restored."
notificationtype TRAP
errorindex 0
requestid 1922816939
version 1
receivedfrom UDP: [10.2.128.9]:48859->[10.2.176.247]:162
errorstatus 0
messageid 0
community public
transactionid 40484
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (424149843) 49 days, 2:11:38.43
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.25461.2.1.3.2.0.1552
SNMPv2-SMI::enterprises.25461.2.1.3.1.2 type=4 value=STRING: "2018/12/07 11:04:30"
SNMPv2-SMI::enterprises.25461.2.1.3.1.3 type=4 value=STRING: "010401003313"
SNMPv2-SMI::enterprises.25461.2.1.3.1.4 type=4 value=STRING: "SYSTEM"
SNMPv2-SMI::enterprises.25461.2.1.3.1.5 type=4 value=STRING: "routing"
SNMPv2-SMI::enterprises.25461.2.1.3.1.7 type=4 value=""
SNMPv2-SMI::enterprises.25461.2.1.3.1.8 type=70 value=Counter64: 981528
SNMPv2-SMI::enterprises.25461.2.1.3.1.9 type=4 value=STRING: "0x0"
SNMPv2-SMI::enterprises.25461.2.1.3.1.12 type=4 value=STRING: "C4FWSM03-01"
SNMPv2-SMI::enterprises.25461.2.1.3.1.300 type=4 value=STRING: "path-monitor-recovery"
SNMPv2-SMI::enterprises.25461.2.1.3.1.301 type=4 value=STRING: "default"
SNMPv2-SMI::enterprises.25461.2.1.3.1.302 type=4 value=STRING: "general"
SNMPv2-SMI::enterprises.25461.2.1.3.1.303 type=2 value=INTEGER: 5
SNMPv2-SMI::enterprises.25461.2.1.3.1.304 type=4 value=STRING: "Path monitoring for static route destination 0.0.0.0/0 with next hop 212.117.121.81 recovered. Route restored."

Comment