[ZBXNEXT-585] Value mapped Items meaning not displayed on Network map labels Created: 2010 Dec 16 Updated: 2013 Dec 28 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.3 |
Fix Version/s: | None |
Type: | Change Request | Priority: | Major |
Reporter: | Grigory | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 5 |
Labels: | maps, patch, trivial, usability, valuemapping | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
FreeBSD 7.3., Zabbix 1.8.3 |
Attachments: | items-value-map.patch maps-value-map.patch | ||||||||
Issue Links: |
|
Description |
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']); Now in my Network Map i have explained value of Item. |
Comments |
Comment by Javier Barroso [ 2012 Feb 03 ] |
This patch make if sentence work again, before it was ignored (because a ";") |
Comment by Javier Barroso [ 2012 Feb 03 ] |
This patch is for show value as in mapping value in maps. |
Comment by Javier Barroso [ 2012 Feb 03 ] |
See updated patch for 1.8.10 version |
Comment by Prostrelov [ 2012 Aug 01 ] |
This changes didn't affect zabbix v.2.0.0 maps.inc.php didn't contain this strings $value = $item['lastvalue'];
$label = str_replace($expr, $value, $label); items.inc.php didn't have patch strings too. Can u please create patch for zabbix 2.0.0 |