-
Problem report
-
Resolution: Unresolved
-
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:
- Install zabbix agent 2 version 7.0.10
- Get data from wmi.getall[root\cimv2,select * from win32_bios]
- 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"}]]