I'm trying to get the result of a Perfmon counter with multiple instances.
I'm unable to find the correct syntax to get a specific instance.
command info= inject Checkcounter "Counter:\Processor\%Processor Time\_Total" ShowAll
Result : "The specified instance of the performance object was not found"
Everything works well for a perfmon counter with no instance.
Here is the answer from Michael :
Hi, if I recall correctly there should be () around the instance(?)...
If you check the following page
http://trac.nakednuns.org/nscp/wiki/CheckSystem you will find the
counter for CPU: \Processor(_total)\% Processor Time
So to adapt to your command:
command info= inject Checkcounter "Counter:\Processor(_total)\%
Processor Time" ShowAll
But since there is already a CPU checker I would use checkCPU instead...
it is probably simpler...
http://trac.nakednuns.org/nscp/wiki/CheckCPU (inject checkCPU warn=80
crit=90 time=20m time=10s time=4)