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

    • Problem report
    • Resolution: Duplicate
    • Trivial
    • 5.4 (plan)
    • 5.0.5rc1, 5.2.0beta2, 5.2 (plan)
    • Agent2 plugin (N)
    • None
    • Team C
    • Sprint 69 (Oct 2020), Sprint 70 (Nov 2020)
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: