How to monitor existence of folders with Windows WMI plugin?
ITRS Geneos users can consider using the WMI plugin to query the Win32\_Directory class.
The following is an example that returns all directories under C:\Windows. The sampler configuration in XML is attached in this article.
The Active Console will display a dataview similar to the below screen capture.
One useful feature of the WMI plugin is that it can filter the results based on patterns. This can be achieved with the Restriction field, which can use LIKE keyword with % as wildcard character. So for example, the following will list folder names starting with app.
Drive='C:' AND Path='\\Windows\\' AND FileName like 'app%'
For more information, see Windows WMI plugin documentation. For the specification of Windows Management Instrumentation (WMI) and Win32\_ Directory class, check the documentation of Microsoft.