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

Zabbix agent 2 wmi.getall does not return array-type values.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.10
    • None
    • None

      After updating to version 7.0.10, Zabbix Agent 2 stopped returning properties with array type in wmi.getall queries.{}

      Steps to reproduce:

      1. Install zabbix agent 2 version 7.0.10
      2. Get data from wmi.getall[root\cimv2,select * from win32_bios]
      3. Try to get the value of the BIOSVersion field

      Result:

      wmi.getall[root\cimv2,select * from win32_bios][s|[{"Caption":"Hyper-V UEFI Release v4.1","Description":"Hyper-V UEFI Release v4.1","EmbeddedControllerMajorVersion":255,"EmbeddedControllerMinorVersion":255,"Manufacturer":"Microsoft Corporation","Name":"Hyper-V UEFI Release v4.1","PrimaryBIOS":"True","ReleaseDate":"20240513000000.000000+000","SMBIOSBIOSVersion":"Hyper-V UEFI Release v4.1","SMBIOSMajorVersion":3,"SMBIOSMinorVersion":1,"SMBIOSPresent":"True","SerialNumber":"9495-2059-4164-1897-7732-6086-22","SoftwareElementID":"Hyper-V UEFI Release v4.1","SoftwareElementState":3,"Status":"OK","SystemBiosMajorVersion":4,"SystemBiosMinorVersion":1,"TargetOperatingSystem":0,"Version":"VRTUAL - 1"}]]

       

      If you reduce the output and select only a specific property, it still doesn't appear in the output:

      wmi.getall[root\cimv2,select BIOSVersion from win32_bios][s|[{"Name":"Hyper-V UEFI Release v4.1","SoftwareElementID":"Hyper-V UEFI Release v4.1","SoftwareElementState":3,"TargetOperatingSystem":0,"Version":"VRTUAL - 1"}]]

      Expected:
      Output from zabbix agent 2 version 7.0.9

      wmi.getall[root\cimv2,select * from win32_bios][s|[{"BIOSVersion":["VRTUAL - 1","Hyper-V UEFI Release v4.1","Microsoft - 100032"],"BiosCharacteristics":[3,9,15,16,19,28,32,42,43,44],"Caption":"Hyper-V UEFI Release v4.1","Description":"Hyper-V UEFI Release v4.1","EmbeddedControllerMajorVersion":255,"EmbeddedControllerMinorVersion":255,"Manufacturer":"Microsoft Corporation","Name":"Hyper-V UEFI Release v4.1","PrimaryBIOS":"True","ReleaseDate":"20240513000000.000000+000","SMBIOSBIOSVersion":"Hyper-V UEFI Release v4.1","SMBIOSMajorVersion":3,"SMBIOSMinorVersion":1,"SMBIOSPresent":"True","SerialNumber":"9495-2059-4164-1897-7732-6086-22","SoftwareElementID":"Hyper-V UEFI Release v4.1","SoftwareElementState":3,"Status":"OK","SystemBiosMajorVersion":4,"SystemBiosMinorVersion":1,"TargetOperatingSystem":0,"Version":"VRTUAL - 1"}]]
      wmi.getall[root\cimv2,select BIOSVersion from win32_bios][s|[{"BIOSVersion":["VRTUAL - 1","Hyper-V UEFI Release v4.1","Microsoft - 100032"],"Name":"Hyper-V UEFI Release v4.1","SoftwareElementID":"Hyper-V UEFI Release v4.1","SoftwareElementState":3,"TargetOperatingSystem":0,"Version":"VRTUAL - 1"}]]

            pzakrzewski Piotr Zakrzewski
            ktrout Kilgore Trout
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: