-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
3.0.4
-
Linux
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