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

Trigger function regex() incorrectly matches regular expressions

XMLWordPrintable

    • Sprint 36, Sprint 37
    • 1

      I have a trapper item of type Text and a simple trigger attached to it. Here is my trigger configuration:

      According to my understanding this regular expression should match any string containing "a" or "b" or "c". But for some reason it does not fire when I send "a", "b" or "c". It only fires when I send "abc":

      In emails I get:

      Trigger: Last value matches regexp
      Trigger status: PROBLEM
      Trigger severity: Not classified
      Trigger URL:

      Item values:

      1. Text trapper (test:text.trapper): abc
      2. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN
      3. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN

      Original event ID: 164

      and

      Trigger: Last value matches regexp
      Trigger status: OK
      Trigger severity: Not classified
      Trigger URL:

      Item values:

      1. Text trapper (test:text.trapper): a
      2. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN
      3. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN

      Original event ID: 164

        1. problems.png
          problems.png
          60 kB
        2. trigger.png
          trigger.png
          45 kB
        3. values.png
          values.png
          40 kB

            MVekslers Michael Veksler
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: