[ZBX-5975] Sum of items is nodata if one of its terms is nodata Created: 2012 Dec 11  Updated: 2017 May 30  Resolved: 2012 Dec 11

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

Type: Incident report Priority: Trivial
Reporter: Jairo Alves Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: calculateditems, nodata
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux CentOS 6.3


Issue Links:
Duplicate
duplicates ZBXNEXT-292 Handling of undefined items when eval... Open

 Description   

We have a calculated item as follows:

calculated-sum = last("item-1") + last("item-2") + last("item-3").

Now, if one of those items is nodata, the calculated-sum item is also nodata. This is ok, gerally speaking, but it is not what one would have expected in this particular case. We would like the sum to display the sum of the valid items and ignore absent items.

It could be corrected with a convertion from 'nodata' to zero in sums (or 'nodata' to ones in multiplications). Does anyone know a way of doing this?

Thanks
Jairo


Generated at Thu Apr 25 13:50:20 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.