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

Wrong trigger expression validation

XMLWordPrintable

    • S24-W26/27

      Steps to reproduce:
      1. Have HOST with 2 items: Numeric and Text
      2. Create trigger
      2.1 Open expression popup
      2.1.1 Choose Text item
      Note that there are many string functions, for example replace():

      2.1.2 Choose Numeric item
      Note that most of string functions are not available, including replace() function:

      3. Close expression popup without adding any function
      4. Enter expression manually, but using string function for Numeric item:

      replace(last(/HOST/numeric),"pattern","replace")=0
      

      Result:
      Trigger is successfully saved.
      Expected:
      Error: incorrect expression for numeric item.

            zabbix.dev Zabbix Development Team
            lgrigorjeva Larisa Grigorjeva
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 9.55h
                9.55h