We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #6409: wmi.include: don't throw exepctions in the parse function

ComponentChecks & Agents
Titlewmi.include: don't throw exepctions in the parse function
Date2018-09-04 09:09:10
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b1,1.5.0p4
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

In previous versions the parse function provided in wmi.include (used in different WMI checks like e.g. wmi_cpuload) raised a MKCounterWrapped exception if a WMI timeout occured. This leads to a crash during the service discovery when a timeout occurs.

Now the parse function always returns valid data. If a timeout occurs an empty table is added to the parsed data. The inventory function can then easily check for empty tables. If on the other hand the check function tries to access an empty table a MKCounterWrapped exception is raised.