item.get dosent filter results by application property

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Done
    • Priority: Trivial
    • None
    • Affects Version/s: 5.2.3
    • Component/s: API (A)
    • None
    • Environment:
      Ubuntu 18.04

      Hello!

      Trying to get items with a filter by “application” property. Getting a full (not filtered) list of items of a host.
      Property “application” is present in “properties” list of a method “item.get” description.
      https://www.zabbix.com/documentation/current/manual/api/reference/item/get

      the code:

      $zd['jsonrpc'] = "2.0";
      	$zd['method'] = "item.get";
      	$zd['params']['output'] = ["itemid", "lastvalue", "name", "lastclock"];
      	$zd['params']['filter']['host'] = "Mnf_modbus";
      	$zd['params']['filter']['application'] = "dcv";
      	$zd['params']['sortfield'] = "name";
      	$zd['auth'] = $zabbix_auth;
      	$zd['id'] = 1;
      

            Assignee:
            Zabbix Support Team
            Reporter:
            Dmitri Kuzmin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: