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

API get method subselects not working correctly if a node is selected

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8
    • Fix Version/s: 2.1.9, 2.2.0
    • Component/s: API (A)
    • Labels:

      Description

      I have a DM configuration with two nodes: a local and a child node. The child node has a host with an application and an item in that app. I choose to display all nodes and perform the following request:

      {
      "jsonrpc": "2.0",
      "method": "application.get",
      "params":

      { "applicationids": "200100000000010", "selectItems": [ "itemid" ] }

      ,
      "id": 3,
      "auth": "729bd3e39886d2d773b31fffda4544ba"
      }

      Everything works ok. But when I select the local node, the selectItems parameter does not return any items. That happens because CZBXAPI::createRelationMap() method builds relations only using the records from the selected node. It should not take nodes into account.

        Attachments

          Activity

            People

            • Assignee:
              iivs Ivo Kurzemnieks
              Reporter:
              jelisejev Pavels Jelisejevs (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: