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

Not supported item when wmi.getall[] returns no items

XMLWordPrintable

    • Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021)
    • 0.25

      Steps to reproduce:

      1. Create item with key wmi.getall[]. Use a query that returns no items.
        Example: 
      wmi.getall[root\cimv2,"select * from win32_service where displayname like 'non_existing_service'"]
      1. Wait for data from this key

      Result:

      Item state is "Not supported" with error "Empty WMI search result"

      Expected:
      Return empty JSON array without error:

       

      []
      

       

      Switching to Not Supported state leads to flapping elements in the case of using dependent items.

        1. image-2020-04-02-16-57-37-295.png
          5 kB
          Alex Alexandrov
        2. image-2020-10-02-11-52-00-166.png
          8 kB
          Dmitrijs Goloscapovs

            dgoloscapov Dmitrijs Goloscapovs
            alex_spq Alex Alexandrov (Inactive)
            Team A
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: