[ZBXNEXT-6623] A multiplier prefix for {?EXPRESSION} macro value Created: 2021 Apr 16  Updated: 2024 Dec 18

Status: Need info
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: 5.2.6
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Semiadmin Assignee: Unassigned
Resolution: Unresolved Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are new macro {?EXPRESSION}, new macro function fmtnum(<digits>) and new trigger parameter "Event name" in v 5.2.
That's great, but it's impossible to get a value with a multiplier prefix in the event name this way. That would be good to add the second parameter to a fmtnum() macro function to select a division by 1000, 1024 or return the value as-is if this parameter is absent.



 Comments   
Comment by Alex Kalimulin [ 2024 Aug 28 ]

semiadmin, do you mean something like this?

Item value in KB: {{?last(/Host/item_in_bytes)/1024}.fmtnum(0)} KB
Generated at Wed Apr 09 12:51:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.