Value mapping
This time, we are interested in only one value, the one that decides how the value is displayed to us. Mark the checkbox next to the Show value entry to see the available options.
It looks like somebody has already defined entries here, but let's find out what it actually means before making a decision. Click on the Show value mappings link to the right on the same line:
Back in the mass-update screen, recall the mapping entries we just saw and remember which entry fit our requirements the best. Choose Service state from the drop-down menu for the only entry whose checkbox we marked,?Show value.
When you are done, click on the Update button. This operation should complete successfully. You can click on the Details control in the upper-left corner to verify that all three items we intended were updated.
Let's see how our change affected information display. Configured and assigned value mappings are used in most Zabbix frontend locations where it makes sense. For example, let's visit that old friend of ours, Monitoring | Latest data. Take a close look at the various server status entries—Zabbix still shows numeric values for the reference, but each has conveniently listed an appropriate friendly name mapped value:
Value mapping can be used for integers, decimal values (floats), and strings. One use case for strings could be the mapping of different backup levels that a backup software might return:
- I => Incremental
- D => Differential
- F => Full
Navigate back to Monitoring | Overview and again, look at the various server status entries for ANOTHER HOST: