-
Problem report
-
Resolution: Fixed
-
Major
-
5.2.3, 6.0.26rc1, 6.4.11rc1, 7.0.0beta1
-
Windows 10 19042.685, WIndows Server 2019, Windows Server 2022
-
Sprint candidates, S24-W6/7
-
1
This is a regression from ZBX-11621, or at least that fixed bug looks extremely similar to this one. Apparently this error happens if a WMI client does not fully read the result set before closing it.
My current hypothesis is that parse_first_first() should read the result until it gets a WBEM_S_NO_MORE_DATA result rather than returning after reading the first record. The current documentation for IWbemClassObject::Next() does not mention this protocol, but that for [IWbemClassObject::NextMethod() does.
Steps to reproduce:
- zabbix_get -s ... -k wmi.get["root\cimv2","Select serialnumber from win32_bios"]
- On the target system, open Event Viewer and look at the Microsoft-Windows-WMI-Activity/Operational log.
Result:
There is an error event 5858 with event data similar to this:
Id = {00000000-0000-0000-0000-000000000000}; ClientMachine = ...; User = NT AUTHORITY\SYSTEM; ClientProcessId = 10724; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\cimv2 : select AddressWidth from Win32_Processor; ResultCode = 0x80041032; PossibleCause = Unknown
Expected:
No error events.
- is duplicated by
-
ZBX-22964 WMI Error 0x80041032 caused by Zabbix Agent 5.0 LTS for Windows
- Closed