Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6468

item.get dosent filter results by application property

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Done
    • Icon: Trivial Trivial
    • None
    • 5.2.3
    • API (A)
    • None
    • 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;
      

            zabbix.support Zabbix Support Team
            mokus Dmitri Kuzmin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: