smyers051972
asked on
PRTG Custom WMI Query Regarding Disk Performance Status
I am trying to figure out a way to pull disk perfmon status from windows 2008 and 2012 (will be accessing remote systems), I am particularly interested in Disk Read/Write Bytes per second. I am intending to put this into PRTG but need to create a good powershell script, this will need to impersonate another user (service account). Any help is greatly appreciated.
Thanks
Thanks
ASKER
Hello, I tested this recommendation and in part worked, I have found out they want to monitor more, there are 4 items and I am attaching the screen shot, they are highlighted in grey.
perf.png
perf.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the assist!
C:\Users\mallen>Get-counte
Basic article: https://technet.microsoft.com/en-us/magazine/ee872428.aspx
Get-Counter documentation: https://technet.microsoft.com/en-us/library/hh849685.aspx (lots of examples here)
This article explains how to use Get-Counter -ListSet to retrieve a dynamic list of counters (for example, if you want the counters for each physical drive on each target system, but you don't want to hardcode drive letters):
http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/28/use-performance-counter-sets-and-powershell-to-ease-baselining.aspx
Note that you can specify multiple remote computers, and multiple counters in a single command.