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

wmi.getall[] return value in case if empty dataset is returned

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 5.0.5rc1, 5.2.0beta2, 5.2 (plan)
    • Fix Version/s: 5.4 (plan)
    • Component/s: Agent2 plugin (N)
    • Labels:
      None
    • Team:
      Team C
    • Sprint:
      Sprint 69 (Oct 2020), Sprint 70 (Nov 2020)
    • Story Points:
      0.25

      Description

      Behaviour of wmi.getall[] in agent2 and agentd has discrepancy at this moment. In agent2 wmi.getall[] returns null in case if valid query returned no items.

      Steps to reproduce:

      1. Create item with key wmi.getall[]. Use a valid WMI query that return no items.
        For example:
        wmi.getall[root\cimv2,"select * from win32_service where displayname like 'non_existing_service'"]

      Result:
      null returned

      Expected:
      Return empty JSON array:

      []
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgoloscapov Dmitrijs Goloscapovs
              Reporter:
              dgoloscapov Dmitrijs Goloscapovs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: