0

This is my first question in this great site I've been using for a long time.

I would like to use System.Diagnostics to obtain from a remote computer the percentage of CPU and memory used. Also need to know the percentage of CPU and memory used by certain processes. To access the remote computer I implement "Impersonate". This is easily done with WMI but is very inefficient and resource intensive for simple monitoring tasks. In the CategoryName "Memory" with CounterName "Available MBytes" I can get how much memory is available but I have not found how to know the percentage of total memory used.

So...

Where I can find a list of all the CategoryName and their CounterName for System.Diagnostics?

Deulis
  • 414
  • 4
  • 10

1 Answers1

-1

I believe you need Performance Counters to get those remote computer statistics. Please visit this links to get more information

http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx http://www.cinchoo.com/category/diagnostics/performancecounters

Cinchoo
  • 6,088
  • 2
  • 19
  • 34
  • 1
    After spending an entire day searching I finally found it(conclusion: I'm really bad looking for) In this link: [link](http://msdn.microsoft.com/en-us/library/2fh4x1xb%28vs.71%29.aspx) It is an excellent article entitled: "Walkthrough: Retrieving Categories and Counters" – Deulis May 16 '12 at 00:50
  • @Deulis: i had visited the link provided by you. How could you get remote computer performance. it just list counters and categories from the local machine. how to get it for remote machine when it has domain name, user name, password? – Gomathipriya May 04 '13 at 07:23