NSClient++ Help (#1) - checkCounter for multiple instances of a perfmon counter? (#649) - Message List

checkCounter for multiple instances of a perfmon counter?

hey gang,

Just wondering if anyone has a solution to this problem.

I have an app -- say IIS - which spawns multiiple instances of an executable (i.e. w3wp.exe). I'd like to be able to monitor each instance, but I can't figure out how to get at the counters...

in perfmon, I have counters for w3wp, w3wp#1, w3wp#2, etc. there's a hack (details elude me at the moment) where you can change this to w3wp_<pid>.

in either case, I can't find a way to configure nsclient to find counters for each individual instance. I've tried:

check_w3wp = CheckCounter ""\Process(w3wp$ARG1$)\% Processor Time" MaxWarn=80 MaxCrit=90

then called it from nagios as:

check_nrpe -H host1 -c check_w3wp -a #1 check_nrpe -H host1 -c check_w3wp -a _3854 (pid format)

no joy.

how can i monitor each instance of an executable?

thanks!

oddboy

Subscriptions