[ZBXNEXT-3884] Extend item preprocessing with custom expression Created: 2017 May 23  Updated: 2019 Sep 03  Resolved: 2019 Sep 03

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: 3.4.0alpha1
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Glebs Ivanovskis (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 12
Labels: preprocessing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-4040 Add temperature preprocessing in item... Closed
Sub-task
depends on ZBXNEXT-4944 Javascript for preprocessing Closed
part of ZBXNEXT-4109 Allow to use LLD MACRO value as a val... Closed

 Description   

Can be used to convert temperatures from centigrade to Fahrenheit or vice versa and, I suppose, in many other applications. Custom multiplier is not sufficient in this case.

We can use our universal "calculator" we use for trigger expressions, calculated item formulas, custom action condition expressions, etc.



 Comments   
Comment by Vitaly Zhuravlev [ 2017 Sep 18 ]

we need ability to use a pow(x,y) function inside those expressions. Example use case described in ZBXNEXT-4109.

Comment by Ian Kelly [ 2018 Sep 12 ]

getting times back and converting the timezone part to numbers for comparison in a trigger. 

Comment by Pimmetje [ 2018 Nov 26 ]

I think it would be better if we can define scripts that are executed on the zabbix server for pre-processing values. In my case i want to convert a IP-address to int to be able to compare it to something else. I now have the conversion on the client side. But in some cases it could be useful to do this server side.

I think it's possible to think of 100+1 things u normally can't do. Having user defined scripts could solve them all.

But maybe it will go to far. Just me 2 cents.

Comment by Vitaly Zhuravlev [ 2019 Feb 18 ]

Please see JS custom script, ZBXNEXT-4944, already implemented in

  • pre-4.2.0alpha4 r89790
Generated at Fri Apr 26 11:56:02 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.