CheckCounter Instance

Help
z00plus
2006-11-14
2013-01-10
  • z00plus
    z00plus
    2006-11-14

    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.

    Any Idea

     
    • z00plus
      z00plus
      2006-11-15

      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)

      // MickeM