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

Not all aggregation functions work with foreach functions

    XMLWordPrintable

Details

    • Team C
    • Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), Sprint candidates, S2401
    • 2

    Description

      Steps to reproduce:

      1. Try to create an itemprototype like: varpop(avg_foreach(/*/some.zabbix.key{#LLDMACRO}?group="{#HOSTGROUPLLD}",1d))

      Result:
      The web frontend will tell you incorrect usage for function 'varpop'. The same is true for varsamp, stddevsamp and stddevpop

      Expected:
      This should work according to the documentation since the change in trigger and aggregate item syntax into the new unified syntax. 

       

      It also did not work in version 5.4.10.

       

      What's interesting is you can successfully test the item with the Test button when you go through the "Create Item" display. So, the calculation works, but something is incorrectly invalidating the syntax.

       

      We would really like this patched in 6.0 because a calculation like the one above is incredibly valuable when looking across a cluster of related hosts.

      Attachments

        Activity

          People

            ak Andrejs Kozlovs
            GRyan337 Ryan Eberly
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: