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

Component Checks & agents
Title wmi.include: don't throw exepctions in the parse function
Date Sep 4, 2018
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.5.0p4 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - 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.

To the list of all Werks