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

Calculated Items not working with Aggregate functions

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • 6.0.7
    • 6.2.0, 6.2.1
    • Server (S)
    • None
    • Ubuntu LTS

      Recently we updated Zabbix in our environment from 6.0 to 6.2

      Upon updating one of our items failed. It was a calculated item with aggregate functions.

      Basically on a bunch of host endpoints I would watch a log file using:

      system.run ["grep -c <error> /var/log/error.log"]

      I also used post processing and selected simple change.

      So basically anytime Zabbix saw the count of those lines increase it would increment by 1.

      Now I also setup a "Dummy" Host that would use the following aggregate function.

      sum(last_foreach(//system.run["grep -c <error> /var/log/error.log"]?[group="endpoints"],5m))*
      And then I set a trigger and trigger action that was if it was over 50 then run this script on another host.

      And in 6.0 this worked flawlessly. Once we upgraded to 6.2 it broke and we also upgrade to 6.2.1 and it still does not work. The error we get is this.

      Cannot evaluate expression: no input data for function at "sum(last_foreach(//system.run["grep -c <error> /var/log/error.log"]?[group="endpoints"],5m))*

      Another coworker of mine also tried to create aggregate functions for other tasks and was not able to he got the same error.

      Any questions feel free to reach out to me.

      Jordan.

            zabbix.support Zabbix Support Team
            Jordan.g Jordan Greenling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: