[ZBXNEXT-2079] LLD: using a macro for specifying units Created: 2013 Dec 19 Updated: 2014 Oct 20 Resolved: 2014 Oct 17 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | 2.2.0 |
Fix Version/s: | 2.5.0 |
Type: | Change Request | Priority: | Minor |
Reporter: | Janne Korkkula | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 2 |
Labels: | lld, macros, units | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Currently, the units field does not expand macros. We use a single low level discovery rule for populating Zabbix 2.2 with a large amount of environmental sensors with different data types. For this and possibly many other uses, it would be convenient to be able to specify units with a macro. |
Comments |
Comment by Aleksandrs Saveljevs [ 2013 Dec 20 ] |
Another useful feature in this regard would be the possibility to reference another item's value in the units field or the multiplier field. An example for units field would be "prtOutputCapacityUnit" object in PRINTER-MIB in SNMP which specifies the unit of measure for "prtOutputRemainingCapacity" and "prtOutputMaxCapacity" objects. So when showing a value for "prtOutputRemainingCapacity.1.1" object, it would be useful to show it in units of "prtOutputCapacityUnit.1.1". For instance, "15 sheets". An example for the multiplier field would be "hrStorageAllocationUnits" object in HOST-RESOURCES-MIB which specifies allocation units for "hrStorageUsed" and "hrStorageSize" objects. For instance, if "hrStorageAllocationUnits.1" is 1024 and "hrStorageSize.1" is 65536, we would like to see the value in bytes as 64 MiB. Similarly, if "hrStorageAllocationUnits.2" is 4096 and "hrStorageSize.2" is 32768, the value in bytes would be 128 MiB. asaveljevs Moved to ZBXNEXT-2524. |
Comment by Alexander Vladishev [ 2014 Oct 17 ] |
Specification: http://zabbix.org/wiki/Docs/specs/ZBXNEXT-2079 |
Comment by Alexander Vladishev [ 2014 Oct 17 ] |
Available in the development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-2079 |
Comment by Alexander Vladishev [ 2014 Oct 17 ] |
(1) Updated documentation: asaveljevs Perfect! CLOSED. |
Comment by Alexander Vladishev [ 2014 Oct 20 ] |
Available in pre-2.5.0 (trunk) r50042. |