Hi! Have somebody tried to parse and process SNMP-Traps with multiple varbinds in Zabbix, like:
S:1.1.4.1.0="1.3.6.1.4.1.53808.2"
E:53808.2.8="615"
E:53808.2.9="1"
E:53808.2.10="465"
E:53808.2.11="192.3.2.10"
E:53808.2.12="MA5600T"
E:53808.2.13="source=TEST-OLTHWI-01 location=Frame=0, Slot=1, Subslot=65535, Port=3, ONUID=21"
E:53808.2.14="FTTH_dying gasp of GPON ONTi"
E:53808.2.15="Inventory"
E:53808.2.16="Equipment"
E:53808.2.17="1737023262337"
E:53808.2.18="Minor"
E:53808.2.19="Acknowledged"
E:53808.2.20=""
E:53808.2.21=""
E:53808.2.22=""
E:53808.2.23=""
E:53808.2.24="cleared"
E:53808.2.25="2025-01-16"
E:53808.2.26="2025-01-16 10:27:42"
E:53808.2.27="2025-01-16 10:27:42"
E:53808.2.28=""
E:53808.2.29=""
E:53808.2.30="2025-01-16 10:28:07"
For example, in this trap in different varbinds there are info about source host, alarm, source object (port,board), time, severity. What is best practice to process so kind of traps?
S:1.1.4.1.0="1.3.6.1.4.1.53808.2"
E:53808.2.8="615"
E:53808.2.9="1"
E:53808.2.10="465"
E:53808.2.11="192.3.2.10"
E:53808.2.12="MA5600T"
E:53808.2.13="source=TEST-OLTHWI-01 location=Frame=0, Slot=1, Subslot=65535, Port=3, ONUID=21"
E:53808.2.14="FTTH_dying gasp of GPON ONTi"
E:53808.2.15="Inventory"
E:53808.2.16="Equipment"
E:53808.2.17="1737023262337"
E:53808.2.18="Minor"
E:53808.2.19="Acknowledged"
E:53808.2.20=""
E:53808.2.21=""
E:53808.2.22=""
E:53808.2.23=""
E:53808.2.24="cleared"
E:53808.2.25="2025-01-16"
E:53808.2.26="2025-01-16 10:27:42"
E:53808.2.27="2025-01-16 10:27:42"
E:53808.2.28=""
E:53808.2.29=""
E:53808.2.30="2025-01-16 10:28:07"
For example, in this trap in different varbinds there are info about source host, alarm, source object (port,board), time, severity. What is best practice to process so kind of traps?
All the matching in items and triggers and regsubbing the values out for event names and tags etc...
Comment