[ZBXNEXT-1208] Conditions in calculated items Created: 2012 Apr 28  Updated: 2018 Aug 01

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

Type: New Feature Request Priority: Major
Reporter: Attilla de Groot Assignee: Alexei Vladishev
Resolution: Unresolved Votes: 23
Labels: calculateditems, conditions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hi,

For any number of reasons you might want a value not to be taken into account in the calculation. This can be accomplished by updating the item using the API, but this can be not flexible enough in some situation, because wrong values might be used in the calculation before the formula is updated.

I would like to have condition possibility in a calculated item. This allows us to ignore values of a certain item when the value of another item has a certain value (eg: state == "maintenance" or value > 100000).



 Comments   
Comment by Leonardo Savoini [ 2018 Aug 01 ]

Maybe this can be very easy if they add a function into zabbix -> if(condition, true, false)
Just like in a spreedsheet.
That will solve an issue when I need absolute values. ex: if(number < 0, number * -1, number)

Generated at Thu Apr 25 10:48:55 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.