Werk #3070: windows agent: replaced a very costy section regarding installed software

Component Checks & agents
Title windows agent: replaced a very costy section regarding installed software
Date Feb 8, 2016
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.2.7i4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.2.8b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

To retrieve the list of installed software the mk_inventory.vbs script uses two different approaches that heavily overlap: One retrieves the list of uninstall-entries from the registry, the other retrieved the list of installers registered in the windows installer database (via wmi query to Win32_Product). The latter list is usually a subset of the former and can take excessively long to query as it triggers a verification of the database. In the process it also prints a lot of messages to the event log (see https://support.microsoft.com/de-de/kb/974524).

Therefore the query to Win32_Product has been replaced with a query via a vbs-interface to the installer database. This should produce the same results without the drawbacks mentioned.

To the list of all Werks