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

Regular expression isn't evaluated correctly in trigger context

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Frontend (F), Server (S)
    • Environment:
      Uuntu 16.04, PHP 7.0

      Description

      We're using Zabbix version 3.0.11 and have a character item "healthString". To check its value there is the following trigger:

      {test_host:healthString.regexp("^HEALTH_(OK|WARN.*|ERR ( ?\d+ (pgs repair|pgs inconsistent|scrub errors);?)+)$",#10)}=0
      

      So if none of the latest 10 values matches the regular expression the trigger is fired. Unfortunately there are some values which should match the RegEx but nevertheless the trigger is fired.

      Example value:
      HEALTH_ERR 1 pgs inconsistent; 1 scrub errors
      

      I verified the RegEx with different tools and also with the test function at the global regular expression page in the frontend. The result was always that the value matches the RegEx.

      So I think there is an error with the RegEx evaluation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pu Pascal Uhlmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: