[ZBX-22211] Calculated item with foreach function problem Created: 2023 Jan 13  Updated: 2023 Jan 18  Resolved: 2023 Jan 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: george davanis Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

I try to make a function with last foreach for a calculated item but alaways i have a problem.

sum(last_foreach(/ISPSRV/vfs.fs.size[C:\ISP_v5015\ISP_FILE*,used]))

I want to discover all new items with name File i and use * or [*] or ?? to discover it but i have

the same messages.

  • Cannot evaluate function: item "/ISPSRV/vfs.fs.size[C:\ISP_v5015\ISP_FILE*,used]" does not exist at "last_foreach(/ISPSRV/vfs.fs.size[C:\ISP_v5015\ISP_FILE*,used]))".
  • Cannot parse formula: invalid token starting with "used]))"


 Comments   
Comment by Edgar Akhmetshin [ 2023 Jan 18 ]

Item key format:
https://www.zabbix.com/documentation/6.0/en/manual/config/items/item/key

Syntax allowed:
https://www.zabbix.com/documentation/6.0/en/manual/config/items/itemtypes/calculated/aggregate

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support (https://zabbix.com/support) or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding.

Generated at Tue Apr 29 09:53:22 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.