Can you assist me in adding custom WMI monitors?
Q: Can you assist me in adding custom WMI monitors? For example, if i wanted to check c: Disk O/I Read & Write Bytes per Sec, what would the query be exactly?
A: It would be the following custom WMI Query:
SELECT DiskBytesPerSec FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk WHERE Name = "C:"
Generally, if you need to read value of some Windows performance counter you need to
1) Find the corresponding Win32_PerfFormattedData-derived WMI class:
http://msdn.microsoft.com/en-us/library/aa392397
http://msdn.microsoft.com/en-us/library/aa394253
2) Choose the needed property of the class (properties correspond to counters). Say properties of the
Win32_PerfFormattedData_PerfDisk_LogicalDisk class may be found at:
http://msdn.microsoft.com/en-us/library/aa394261
3) Construct the WMI Query as
SELECT
// the WHERE clause is needed if there are several instances (say several logical disks installed)




