Hi guys!
I need some help to build a trigger from a SNMP trap.
My goal is to detect an IRF topology change on a HPE switches stack.
I made an item snmptrap[<regex>] with expression hh3cStackPortLinkStatusChange that work fine, and I receive this kind of trap:
20:41:54 2021/10/25 ZBXTRAP 10.X.X.1
PDU INFO:
notificationtype TRAP
version 1
receivedfrom UDP: [10.X.X.1]:8514->[172.X.X.253]:162
errorstatus 0
messageid 0
community mycommunity
transactionid 15185
errorindex 0
requestid 449115569
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (68454740) 7 days, 22:09:07.40
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: HH3C-STACK-MIB::hh3cStackPortLinkStatusChange
HH3C-STACK-MIB::hh3cStackMemberID.2 type=2 value=INTEGER: 1
HH3C-STACK-MIB::hh3cStackPortIndex.1.2 type=2 value=INTEGER: 2
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER: 1
I want to be abble to trigger when:
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER: =1
And I would like to close the trigger when:
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER:=2
But the value .1.2 (HH3C-STACK-MIB::hh3cStackPortStatus.1.2) do no have to be taken into consideration in the trigger, depending on the stack, the value can be diferent
You help would be very appreciated, thanks in advance.
Henri
I need some help to build a trigger from a SNMP trap.
My goal is to detect an IRF topology change on a HPE switches stack.
I made an item snmptrap[<regex>] with expression hh3cStackPortLinkStatusChange that work fine, and I receive this kind of trap:
20:41:54 2021/10/25 ZBXTRAP 10.X.X.1
PDU INFO:
notificationtype TRAP
version 1
receivedfrom UDP: [10.X.X.1]:8514->[172.X.X.253]:162
errorstatus 0
messageid 0
community mycommunity
transactionid 15185
errorindex 0
requestid 449115569
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (68454740) 7 days, 22:09:07.40
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: HH3C-STACK-MIB::hh3cStackPortLinkStatusChange
HH3C-STACK-MIB::hh3cStackMemberID.2 type=2 value=INTEGER: 1
HH3C-STACK-MIB::hh3cStackPortIndex.1.2 type=2 value=INTEGER: 2
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER: 1
I want to be abble to trigger when:
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER: =1
And I would like to close the trigger when:
HH3C-STACK-MIB::hh3cStackPortStatus.1.2 type=2 value=INTEGER:=2
But the value .1.2 (HH3C-STACK-MIB::hh3cStackPortStatus.1.2) do no have to be taken into consideration in the trigger, depending on the stack, the value can be diferent
You help would be very appreciated, thanks in advance.
Henri
.*)2"]
Comment