Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-585

Value mapped Items meaning not displayed on Network map labels

XMLWordPrintable

      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.

            Unassigned Unassigned
            sadman Grigory
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: