Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 6409
blobcafb750bb47b7cc2c7fbb86e07807e747077e4e8
1 Title: wmi.include: don't throw exepctions in the parse function
2 Level: 1
3 Component: checks
4 Compatible: compat
5 Edition: cre
6 Version: 1.6.0i1
7 Date: 1536044950
8 Class: fix
10 In previous versions the parse function provided in wmi.include
11 (used in different WMI checks like e.g. wmi_cpuload) raised
12 a MKCounterWrapped exception if a WMI timeout occured. This
13 leads to a crash during the service discovery when a timeout
14 occurs.
16 Now the parse function always returns valid data. If a timeout
17 occurs an empty table is added to the parsed data. The inventory
18 function can then easily check for empty tables. If on the other
19 hand the check function tries to access an empty table a
20 MKCounterWrapped exception is raised.