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

Details

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

    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

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

            Dates

              Created:
              Updated:
              Resolved: