C# WMI, Performance Counters, & SNMP Oh My!

Posted by Keith on Stack Overflow See other posts from Stack Overflow or by Keith
Published on 2010-06-10T14:31:47Z Indexed on 2010/06/10 14:32 UTC
Read the original article Hit count: 621

I have a C# windows service which listens to a MSMQ and sends each message out as an email.

Since there's no UI, I'd like to offer an ability to monitor this service to see things such as # messages in queue, # emails sent (by message type perhaps), # of errors, etc.

What is the best/recommended way to accomplish this? Is it WMI or performance counters? Is this data viewed using PerfMon or WMI CIM Studio? Does any approach allow one to monitor the service real-time as well as providing historical analysis?

I can dig into the details myself but would appreciate some broad guidance to help demystify this subject.

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services