[ZBX-24697] Cannot evaluate expression: no input data for function at "sum(avg_foreach... Created: 2024 Jun 20  Updated: 2024 Jun 25  Resolved: 2024 Jun 25

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

Type: Problem report Priority: Trivial
Reporter: Evgeny Semerikov Assignee: Edgar Akhmetshin
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2024-06-24 at 16.23.33.png     PNG File Screenshot 2024-06-24 at 16.23.45.png     PNG File Screenshot 2024-06-24 at 16.24.54.png     PNG File Screenshot 2024-06-24 at 16.27.58.png     File ZBX-24697.yaml     PNG File image-2024-06-20-18-33-27-545.png     PNG File image-2024-06-20-19-19-17-412.png     PNG File image-2024-06-24-16-24-36-613.png     PNG File image-2024-06-25-09-35-22-371.png     PNG File image-2024-06-25-09-38-44-296.png     PNG File image-2024-06-25-09-41-19-405.png    

 Description   

Hello!

Steps to reproduce:

I'm have a lot of hosts with CPU discovery, this discovery produces few items, with keys like this:

x5.hw.redfish.systems.processors.cores[/redfish/v1/Systems/1/Processors/1]
x5.hw.redfish.systems.processors.cores[/redfish/v1/Systems/1/Processors/2]

In my case I need to sum values from this items. For this I create a calculated item

x5.hw.common.cpu.cores.count

with formula:

sum(last_foreach(//x5.hw.redfish.systems.processors.cores[*]))

Result:

Expected:
This two items is returm value 18. Expected to see 36 in calculated item without error of not supporting.



 Comments   
Comment by Evgeny Semerikov [ 2024 Jun 20 ]

Seems there is a problem with discovered items, because same schema is working fine for regular items.

Comment by Evgeny Semerikov [ 2024 Jun 20 ]

But no... I'm tried to create a regular calculated item with same key on host

x5.hw.redfish.systems.processors.cores[/redfish/v1/Systems/1/Processors/0]

with formula

0

but main calculated item is still return error:

Comment by Evgeny Semerikov [ 2024 Jun 20 ]

PS: "Execute now" button for all items and discovers is pressed after any changes

Comment by Edgar Akhmetshin [ 2024 Jun 24 ]

Provide more information to reproduce the issue. Or modify this template as needed to demonstrate the issue: ZBX-24697.yaml



Comment by Evgeny Semerikov [ 2024 Jun 25 ]

Hello Edgar! Thanks for help. I'm found a problem - this is my mistake... items have character type instead of numeric. 

Generated at Tue May 06 07:39:19 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.