[ZBXNEXT-8474] Agregated Items with foreach function Created: 2023 May 29  Updated: 2023 Jun 01  Resolved: 2023 May 30

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 6.4.2
Fix Version/s: None

Type: Change Request Priority: Low
Reporter: Gustavo Guido Assignee: Andris Zeila
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File a.php    

 Description   

When calculating consumption by adding consumption of various equipment, we use something like
sum(last_foreach(/host/key/[hostgroupfilter and tagfilter])
This item is calculated periodically taking into account the update interval of the items to be added.
Since the last_foreach function returns the last value harvested, in the event that one or several devices have not recently harvested data, we are going to add values that are not recent, may be hours or days old, obtaining erroneous results.
It would be desirable that it only take relatively recent values, in other words it would be a last, but with a time limit, something like last_newer(15m,0) that returns the value if it occurs in the last 15 minutes or the specified value if there are no values in that time.
When the value is numeric, we use a work around calculating the average of the last 15m (assuming the update interval is 15m)



 Comments   
Comment by Alex Kalimulin [ 2023 May 30 ]

Duplicate of ZBXNEXT-8355.

Generated at Fri Apr 11 04:40:52 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.