-
Change Request
-
Resolution: Unresolved
-
Major
-
None
-
1.8.3
-
FreeBSD 7.3., Zabbix 1.8.3
Currently there is not value mapped Items meaning displayed on Network map labels.
For example: if exist value mapping for upsBasicOutputStatus such as 2 -> OnLine, then that's Item value is displayed on network map label with
{UPS01:upsBasicOutputStatus.last(0)}function as '2', not 'OnLine'.
Code for replacing value of user function with they real meaning in Zabbix's frontend (include/maps.inc.php) is not exist.
I would like to get meaning of mapped value on the label.
Actually i made a few changes in code of maps.inc.php, testing code in work sucessfully, and offer they to developers.
In maps.inc.php::expand_map_element_label_by_data() i was change a $label = str_replace(..., DATA, ...) strings to $value = DATA and append at end of foreach($matches[0]...) cycle small piece code
if($db_item['valuemapid']) $value=replace_value_by_map($value, $db_item['valuemapid']);
$label = str_replace($expr, $value, $label);
Now in my Network Map i have explained value of Item.
- is duplicated by
-
ZBX-5384 Value mapping didnt work on maps
- Closed