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

item.get dosent filter results by application property

    XMLWordPrintable

Details

    • New Feature Request
    • Status: Closed
    • Trivial
    • Resolution: Done
    • 5.2.3
    • None
    • API (A)
    • None
    • Ubuntu 18.04

    Description

      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;
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: