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

Not possible to escape parentheses inside RegEx for function 'count'

    XMLWordPrintable

Details

    • Problem report
    • Resolution: Duplicate
    • Minor
    • None
    • 6.0.9, 6.2.3
    • Frontend (F)
    • None

    Description

      Let's say the value of metric is:

      (0) hello

      If we want to detect this 1:1 using regex, we will use:

      ^\(0\) heelo$
      

      For version 6.0.8 it works fine in trigger function:

      But when upgrading frontend to 6.0.9 and modifying trigger expression a little, it prints:

      Cannot update trigger
      Invalid parameter "/1/expression": incorrect expression starting from "count(/host/input,#2,"eq","^\(0\) hello 123$")=1". 

      Attachments

        Issue Links

          Activity

            People

              zabbix.dev Zabbix Development Team
              aigars.kadikis Aigars Kadikis
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: