For a more “human” representation of received values, you can use value maps that contain the mapping between numeric values and string representations.
Value mappings can be used in both the Zabbix frontend and notifications sent by media types.
For example, an item which has value '0' or '1' can use value mapping to represent the values in a human-readable form:
Or, a backup related value map could be:
Value mappings are defined on template or host level. Once defined they become available for all items of the respective template or host. There is no value map inheritance - a template item on a host still uses the value map from the template; linking a template with value maps to the host does not make the host inherit the value maps.
When configuring items you can use a value map to “humanize” the way an item value will be displayed. To do that, you refer to the name of a previously defined value map in the Value mapping field.
Value mappings can be exported/imported with the respective template or host.
To define a value map:
Parameters of a value map:
|Name||Unique name of a set of value mappings.|
|Mappings||Individual mappings - pairs of numeric values and their string representations.|
All mandatory input fields are marked with a red asterisk.
When the value map is displayed in the list, only the first three mappings of it are visible, while three dots indicate that more mappings exist.
For example, one of the predefined agent items 'Zabbix agent ping' uses a template-level value map called 'Zabbix agent ping status' to display its values.
In the item configuration form you can see a reference to this value map in the Value mapping field:
So in Monitoring → Latest data the mapping is put to use to display 'Up' (with the raw value in parentheses).
In the Latest data section displayed values are shortened to 20 symbols. If value mapping is used, this shortening is not applied to the mapped value, but only to the raw value separately (displayed in parentheses).
Without a predefined value map you would only get this:
So in this case you would either have to guess what the '1' stands for or do a search of documentation to find out.