improvements to the user macro functionality (ZBXNEXT-353)

[ZBXNEXT-873] Allow user macros in items custom multiplier Created: 2011 Aug 08  Updated: 2023 Aug 10  Resolved: 2023 Aug 10

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

Type: Change Request (Sub-task) Priority: Minor
Reporter: azurIt Assignee: Zabbix Development Team
Resolution: Done Votes: 4
Labels: flexibility, items, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It would be cool to be able to use host macros in item's custom multiplier. For example i would like to generate graph which is showing read/write bytes from/to HDDs per second. This is unfortunately not supported in linux so i need to use 'sectors per second' (btw, shouldn't this be called 'blocks per second' ?) - in this case i need to multiply it with block size which is saved as macro in host.



 Comments   
Comment by Ghozlane TOUMI [ 2012 Jun 01 ]

just for reference, this is also useful with CPU related data from some SNMP implementation, where you need to divide by numCPU in order to get the real % .
right now you have to create multiple templates for this to work as you can"t event overwrite the multiplier directly on the host's item

Comment by Areg Vrtanesyan [ 2013 Nov 19 ]

Hi

Agree with this as I already have 7 templates for different hosts and they can be replaced just with one.

Regards,
Areg

Comment by Alexander Vladishev [ 2023 Aug 10 ]

Already implemented in in all currently supported versions: 4.0.x, 5.0.x, 6.0.x, 6.4.x.

Generated at Fri Mar 29 10:08:59 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.