Ad Widget

Collapse

ifAlias injection into trap trigger without ifAlias in trigger's message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • draculoff
    Junior Member
    • May 2020
    • 2

    #1

    ifAlias injection into trap trigger without ifAlias in trigger's message

    Hello!

    In our Zabbix instance we are catching linkDown/linkUp traps from network devices to generate problem events. When Zabbix receives a trap message, it extracts interface description from the trap body with regex. The trigger uses this value in it's name. So, when we see alerts on the dashboard, we can immediately see interface description and conclude what's going on.

    But it's only possible if the network device does include interface alias in the trap body. When some devices does that, others doesn't. For example, Juniper network appliances does include only interface name (e.g. ge-0/0/27), but no alias.

    But, investigating this I found that the trap from Juniper contains interface index as one of variables in the trap body.

    Since we are using LLD in our Zabbix, it knows all about network devices: ifName, ifIndex, ifAlias etc.

    Is it possible to collate somehow ifIndex from snmp trap and ifIndex from LLD and then put ifAlias into trap name?

Working...