I'm in the process of setting of trap reception in Zabbix to alert us on Cisco interface disable events. I have it working perfectly, but I would like to provide the port number in the alert and I haven't figured out a way to extract data in the trap processing and pass it through to an item value or macro I can use in the trigger. One complication is that the trap identifies the port via OID using an index and that would need to be used to look up the port ifDescr to get the actual interface name, for example, SNMPv2-SMI::enterprises.9.9.548.1.3.1.1.2.10120.0 is trapped for index 10120, equating to interface 1/0/20.
I'm certain I could get the port name doing a SNMP query in zabbix_trap_receiver.pl and stuff that back into the trap log message, but I would rather not modify that unless necessary. I'm also uncertain how to extract that info out of the trap log when the item/trigger is next updated.
Is there a good way to go about this?
I'm certain I could get the port name doing a SNMP query in zabbix_trap_receiver.pl and stuff that back into the trap log message, but I would rather not modify that unless necessary. I'm also uncertain how to extract that info out of the trap log when the item/trigger is next updated.
Is there a good way to go about this?