QUESTION:
How can I create an advance WMI test?
RESOLUTION:
Traverse can use WMI to monitor for example the CPU and memory utilization of specific processes running on a Windows server. In order to setup monitoring of an application named "MyApp", as visible on Windows Task Manager, follow these steps.
Before the creation of the test in Traverse we need to gather the information about the wmi class we will utilize and the properties.
- In the Device that you would like to monitor, please run a Power Shell session and run the following:
Get-WmiObject -Class Win32_PerfRawData_PerfProc_Process | Where-Object {$_.__PATH -like "*power*"}
Note that I replaced "MyApp" for "*power*" to match the application I will monitor which is Power Shell
Now we look for the property that we are interested on, in my case PercentProcessorTime
Now in Traverse:
- Log into Traverse Web Application as an end-user
- Navigate to Administration -> Devices
- Click on Tests link for the device where the process is running
- Click on Create New Advanced Tests link
- Enable Advanced WMI Test and configure test parameters:
Thresholds = 25 (warning) and 55 (critical) WMI Property = \Win32_PerfRawData_PerfProc_Process:PercentProcessorTime:Name="MyApp" Result Multiplier = 0.0000001 Maximum Value = 100 Test Units = %
- Click on Provision Tests
Replace MyApp and the thresholds with suitable values. Since this test requires two consecutive polls to calculate the value, you should see a valid result within 10 minutes. For memory utilization, follow the same steps as above with these settings:
Thresholds = 300 (warning) and 450 (critical) WMI Property = \Win32_PerfRawData_PerfProc_Process:WorkingSet:Name="MyApp" Result Multiplier = 0.000001 Test Units = MB
Now when you navigate to Status -> Devices and drill-down into the device, the new tests should be shown with current test status.
APPLIES TO
All versions of Traverse
REFERENCE
None