Werk #17544: WMI checks don't crash on Timeout

Component Checks & agents
Title WMI checks don't crash on Timeout
Date Jun 2, 2025
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p4 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p34 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously, some WMI based checks, such as msexchange and dotnet_clrmemory, would crash and generate a crash report if a WMI timeout occurred. Since WMI timeouts are expected to happen occasionally, this behavior was not appropriate. Moreover, these crash reports provided no useful diagnostic information and only cluttered the disk.

Now, instead of crashing, all WMI based checks will correctly handle the timeout by skipping the data,
eventually setting the service state to STALE,
thus making WMI monitoring uniform and consistent.

To the list of all Werks