How to create advance WMI test

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

wmi_test1.JPG

 Now we look for the property that we are interested on, in my case PercentProcessorTime

wmi_test2.JPG

Now in Traverse:

  1. Log into Traverse Web Application as an end-user
  2. Navigate to Administration -> Devices
  3. Click on Tests link for the device where the process is running
  4. Click on Create New Advanced Tests link
  5. Enable Advanced WMI Test and configure test parameters:

wmi_test3.JPG

Thresholds                = 25 (warning) and 55 (critical)
WMI Property              = \Win32_PerfRawData_PerfProc_Process:PercentProcessorTime:Name="MyApp"
Result Multiplier         = 0.0000001
Maximum Value             = 100
Test Units                = %
  1. 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.

wmi_test4.JPG

APPLIES TO

All versions of Traverse 

REFERENCE

None

 

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section