[ZBXNEXT-3564] Reverse (String to Integer) Value Mappings Created: 2016 Nov 22  Updated: 2016 Nov 22

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

Type: Change Request Priority: Minor
Reporter: Christopher Demmer Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: database, frontend, items, performance, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux



 Description   

Please add the functionality for Reverse (String to Integer ) Value Mappings. I use Zabbix to SNMP poll equipment which is often configured to return string values. It would be extremely beneficial to convert value to integers for storage and creating calculated items.

As an example: DPS equipment has an OID for Port State which is either 'Alarm' or 'Clear'. I would prefer to be able to value map 'Alarm' => 1 and 'Clear' => 0 and store the integer values versus the string. Having the port state as numbers is more than just memory efficient. It would allow me to calculate how many ports are in alarm by doing a simply summation of the new integer values. So the basic logic for percentage of ports in alarm would be (sum[port1-port24]/24)*100. Currently there is no easy way to create calculated items from string values without doing back-end code magic.

Thank you Zabbix Team



 Comments   
Comment by Christopher Demmer [ 2016 Nov 22 ]

I suppose this feature request would involve allowing Reverse (String to Integer ) Value Mappings and allowing "Store value" as value mapping.

Comment by richlv [ 2016 Nov 22 ]

value mapping is already supported like that since zabbix 2.2 - see http://blog.zabbix.com/zabbix-2-2-features-part-5-better-value-mapping/2146/

value mapping is not for storing values, though - sounds like you want a customisable boolean type, as requested in ZBXNEXT-3562

Generated at Thu Apr 25 12:27:39 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.