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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.9, 2.2.0
    • 2.1.8
    • API (A)

      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.

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

              Created:
              Updated:
              Resolved: