Ad Widget

Collapse

How to use aggregate functions on values from multiple items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CharlesChen
    Junior Member
    • Nov 2021
    • 1

    #1

    How to use aggregate functions on values from multiple items

    Zabbix server: 5.4.3

    Hi, I'm new to Zabbix and in trouble of using aggregate function.

    I created a LLD item prototype which produces items for collecting firmware version for each drive. Each of the items return a version number(I converted the type of version to number)
    Now I want to create a trigger to report error If the version number of any item is inconsistent with the other. The "stddevpop" aggregate function can be used to do this. Having tried my best, I have not been able to get the aggregate function work in trigger expression.

    The items keys like
    firmware_level["["0"]"], firmware_level["["1"]"], firmware_level["["2"]"]...
    The trigger expression as below:
    Code:
    stddevpop(last_foreach(/Health Check/firmware_level[*]))>0
    The error occurs when add the trigger:
    Invalid parameter "/1/expression": incorrect usage of function "stddevpop".
    I tried using different key name, still failed to add the trigger.


    I referred the following Zabbix doc:



    Any suggestion will be helpful, thanks in advance.
Working...