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

We have an issue where occasionally over time, a Perfmon counter set will stop. We are looking for a way to monitor if a particular counter set is running, does anyone know of a way to do this? We use Nagios for basic alerting but we have another monitoring tool that can run executable vbscrips, batch files, wmi queries, ect.

Does anyone have a way to verify if a perfmon set is running or stopped? We'd rather not have to audit 120 servers manually.

share|improve this question

1 Answer 1

If you're just looking for a way to check if a PerfMon Counter is running, have you checked into Logman? A simple logman query will show you the status of all of the counters on a system.

However, if you want to take the next step and automatically restart stopped counters, you might find this handy:

@echo off
set COUNTER_LIST=("LogA" "LogB" "SoForth")
for %%i in %COUNTER_LIST% do logman start %%i

That's a simple .bat script which will automatically restart all PerfMon Counters named in COUNTER_LIST. If a counter is already running, logman start delightfully does nothing.

share|improve this answer

Your Answer

 
discard

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.