[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: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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] 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: |
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. |