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

"item_count ()" function is not supported in trigger expressions

    XMLWordPrintable

Details

    • Documentation task
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 6.0.7
    • None
    • Frontend (F)
    • None

    Description

      Steps to reproduce:

      1. Create a trigger
      2. Assign a name
      3. Directly enter a trigger expression that uses "item_count (item filter)" function

      Result:
      Observe an error message :

       

      Invalid parameter "/1/expression": incorrect expression starting from "item_count(...

      Expected:
      A successful creation, as according to our documentation

      Except where stated otherwise, all functions listed here are supported in:

      *

      Trigger expressions

      https://www.zabbix.com/documentation/6.0/en/manual/appendix/functions/aggregate

       

      and it is not "stated otherwise" for the "item_count (".

      Thus we need to state this for the function.

      Please, also check if any other functions should be marked as unavailable to be used in trigger expressions.

      P.S. If the graphical dialogues addition of the trigger expression is used - i.e. "Add" button is pressed and a function is being selected from the available in combobox - "item_count()" function is not listed (implies that it is unavailable). But still many Zabbix users type in functions directly.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            asincovs Antons Sincovs
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: