Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Struggling to find the counters to get the status of a service using perfmon. Is it even possible? We need to monitor the status of a service in Nagios but the only remote access avaliable is through Perfmon.

share|improve this question
wow only having perfmon is kinda strange, is this a cloud based server? Are you completely sure you don't have wmi access? –  tony roth Oct 25 '11 at 16:01
btw what is the limiting you to perfmon only? Permissions,acls etc –  tony roth Oct 25 '11 at 19:02
@tony if we want to install any new software on the server there is a 6 month testing cycle required, we need these performance counters now and the Windows admins "don't have time" (I'm a UNIX/Oracle Admin, I don't touch Windows with a long pole) –  Unfortunate Oct 26 '11 at 10:08
wmi does not require anything to be installed its what you need to do this and nagios works perfectly with wmi calls. –  tony roth Oct 27 '11 at 15:11
this should get you started thibault.info/node/2 –  tony roth Oct 27 '11 at 15:13

2 Answers 2

The Performance Monitor is used to measure metrics of your machines performance, and not the status of a service.

While I know you're looking to monitor this status in Perfmon, I don't think it's the right tool for you. If you can get into services.msc you can navigate to the "Recovery" tab of that service. From here you can choose how your server reacts to different states that the service may be in. For instance you could choose to restart the service on the first failure, and run a script that e-mails you on the second and third failure of the service, etc.

share|improve this answer
In our situation this wouldn't work, when the service goes down, it causes a lot of other things to break, and simply restarting it won't help. We need to monitor the status in Nagios, and the only remote access we have is Perfmon. These are live servers so we can't install any new software without a 6 month testing cycle and they need this monitoring enabled by next week. –  Unfortunate Oct 25 '11 at 13:18
boy somebody really screwed this one up didn't they? –  tony roth Oct 25 '11 at 19:05

There are no performance counters for services. For a kind of one-shot you could monitor the counters of the process your service is invoking - for example the process' private bytes or the number of threads.

As the process id is going to change on every restart, you would need to adjust your monitoring accordingly. But it will work as a quick & dirty solution unless you have something more robust in place.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.