Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9746

filter by itemids does not work

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.4.5
    • API (A)
    • None
    • linux

      When I run .get method on item or trigger, and filter by itemids, I get result of all items or trigger for selected device.

      curl -i -X POST -H 'Content-Type: application/jsonitem.get","auth":"f093acb45571653a64cecb06bc12402a","id":1,"jsonrpc":"2.0","params":{"output":"itemids","filter":{"itemids":"84006","host":"r_378"}}}' http://zabbix/api_jsonrpc.php
      HTTP/1.1 200 OK
      Server: nginx/1.6.2
      Date: Thu, 30 Jul 2015 16:31:53 GMT
      Content-Type: application/json
      Transfer-Encoding: chunked
      Connection: keep-alive
      X-Powered-By: PHP/5.6.9-0+deb8u1
      Access-Control-Allow-Origin: *
      Access-Control-Allow-Headers: Content-Type
      Access-Control-Allow-Methods: POST
      Access-Control-Max-Age: 1000
      
      {"jsonrpc":"2.0","result":[{"itemid":"84006"},{"itemid":"84005"}],"id":1}
      

            Unassigned Unassigned
            coudy Coudy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: