Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-13565

SNMP trap item key regexp multiple match

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Incomplete
    • Icon: Minor Minor
    • None
    • 3.4.6
    • Server (S)
    • Ubuntu 16.04

      I configure zabbix to receive snmptraps from network devices. In the item key field I use double quotes in regexp and escape it with backslash.
      But the escaped double quotes and brackets will be removed too by autodiscovery?!

      The item key field:

      snmptrap["(IF-MIB::linkDown|IF-MIB::linkUp)(.|[[:space:]])*(\"{#IFDESCR}\")"]
      

      And the generated item will be the following:

      snmptrap["(IF-MIB::linkDown|IF-MIB::linkUp)(.|[[:space:]])*ge-0/0/20"]
      

      The problem is, the generated item matches multiple interfaces eg. ge-0/0/20 and ge-0/0/2 too.

            Unassigned Unassigned
            joszif joszif
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: