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

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 6.4 (plan)
    • 6.0.7
    • Frontend (F)
    • None
    • Documentation backlog
    • 0.5

      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.

            nburisina Natalija Burisina (Inactive)
            asincovs Antons Sincovs
            Team D
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: