Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4885

API map.get doesn't return all information on map

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Critical Critical
    • None
    • 2.0.0rc1
    • API (A)

      Hi,

      It seems that the API map.get function doesn't return values from links and triggers on a map anymore. Inserting is no problem.

      my $getmap = $zabbixapi->apicall('get','map',

      {'output' => 'extend', 'select_selements' => 'extend', 'select_links' => 'extend'}

      );

      This API query, returns the following (it is just some perl that gets translated to json etc.)

      $VAR1 = {
      'jsonrpc' => '2.0',
      'id' => 2,
      'result' => [

      { 'show_unack' => '0', 'width' => '2560', 'label_type_trigger' => '2', 'grid_show' => '1', 'label_location' => '0', 'iconmapid' => '0', 'urls' => [], 'label_type' => '0', 'grid_size' => '50', 'label_string_hostgroup' => '', 'backgroundid' => '0', 'highlight' => '0', 'label_string_host' => '', 'label_type_host' => '2', 'name' => 'ams-ix-switch-platform', 'label_format' => '0', 'label_string_image' => '', 'sysmapid' => '9', 'height' => '1600', 'label_type_map' => '2', 'expand_macros' => '0', 'label_string_map' => '', 'label_type_image' => '2', 'label_type_hostgroup' => '2', 'expandproblem' => '0', 'markelements' => '0', 'grid_align' => '1', 'label_string_trigger' => '' }

      ,

      { 'show_unack' => '0', 'width' => '2560', 'label_type_trigger' => '2', 'grid_show' => '1', 'label_location' => '0', 'iconmapid' => '0', 'urls' => [], 'label_type' => '0', 'grid_size' => '50', 'label_string_hostgroup' => '', 'backgroundid' => '0', 'highlight' => '0', 'label_string_host' => '', 'label_type_host' => '2', 'name' => 'test-api-map', 'label_format' => '0', 'label_string_image' => '', 'sysmapid' => '175', 'height' => '1600', 'label_type_map' => '2', 'expand_macros' => '0', 'label_string_map' => '', 'label_type_image' => '2', 'label_type_hostgroup' => '2', 'expandproblem' => '0', 'markelements' => '0', 'grid_align' => '1', 'label_string_trigger' => '' }

      ]
      };

      As you can see, no selements or links expanded.

      Can you have a look at this before the final version?

            Unassigned Unassigned
            attilla Attilla de Groot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: