-
New Feature Request
-
Resolution: Done
-
Trivial
-
None
-
5.2.3
-
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;