Create a Performance Counter for a custom WMI class
Please follow these steps to create a performance counter for a custom WMI class.
1) click Start, then choose RUN and type in “wbemtest.exe”. Then press ENTER.
2) click Connect.
3) Connect to the namespace containing your WMI class. This will normally be root\cimv2. If you’re connecting to a remote system, the namespace will look like a UNC path, eg. \\hostname\root\cimv2.
Enter an Administrator username and password if necessary, then click Connect.
4) Click Enum Classes…
5) Leave ‘superclass name’ blank, select ‘Recursive’ and click OK.
6) A Query Result window will open with a full list of WMI classes in that namespace.
Scroll through the list until you find a relevant class. Take note of the class name (eg. Win32_PerfFormattedData_Spooler_PrintQueue)
7) Click Instances to find out which instances exist.
8) take note of the available instances, then double click on one (eg. “_Total”)
9) Find the property you want to monitor, and take note of its name.
10) Open your Service Center, and go to System Settings under Configuration.
11) Switch to the Network Objects tab, and under Performance Counters, click Add.
12) Check the Other’box for each field, and fill out the form with the information you’ve gathered.
‘Performance Object’ and ‘Instance Counter’ can be whatever you want to name them and Object Instance is optional, but WMI Class Name and WMI Property Name are required.
13) Click Save.