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

API 3.4.14 problem with filter by itemid in history.get

XMLWordPrintable

    • Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018
    • 0.5

      Steps to reproduce:

      1. call the function specifing hostids="YYYYY" and (itemids=["XXXXX"] or itemids="XXXXXX" etc ) and filters in time
        In Example
        z.history.get(hostids=10350, itemids=46525, history=0, time_from=1538132400.0, time_till=1538136000.0, sortfield='clock', sortorder='ASC')

      Result:

      returns all the history values for all the items of the host

      Expected:
      just the history values for the item specified

      Work arround:

      specify the filter filter like

      z.history.get(hostids=10350, itemids=46525, history=0, time_from=1538132400.0, time_till=1538136000.0, sortfield='clock', sortorder='ASC', filter={"itemid":"46525"})

       

        1. result.log
          10 kB
        2. screenshot-1.png
          screenshot-1.png
          55 kB
        3. screenshot-2.png
          screenshot-2.png
          96 kB
        4. screenshot-3.png
          screenshot-3.png
          89 kB
        5. screenshot-4.png
          screenshot-4.png
          55 kB
        6. show-latest-values.py
          0.9 kB

            basilgon Vasily Goncharenko (Inactive)
            gustavo.guido@custos.uy Gustavo Guido
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: