Ad Widget

Collapse

How to use numeric values for perf_counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scheffie
    Junior Member
    • Apr 2005
    • 15

    #1

    How to use numeric values for perf_counter

    Hello all,

    Since we are working in a mixed Windows 2003 NLD/ENG environment I would like the feature of numeric perf_counter parameters, but I can't get it to work..

    As described on pages 119/120 from the Zabbix 1.6 Manual I would need to create an Zabbix Agent item with a key like perf_counter[/2/6] but the item is always set to "not supported".
    I'm using the win32 zabbix agent that is included in the 1.6.1 package, but also from the commandline I can't get it to work.

    Does anyone got this to work? or where am I going wrong?

    Thnx for helping!
  • Scheffie
    Junior Member
    • Apr 2005
    • 15

    #2
    Solved!!!

    Hello all!

    After some trial and error work I finally found the problem:

    To convert the English path "\Processor(_Total)\% Processor Time" to a numeric format you still need to include the "(_Total)" index value! Altough the index _Total is English, it will not be converted to dutch in a dutch path.

    Example:

    Eng: "\Processor(_Total)\% Processor Time"
    equals:
    Nld: "\Processor(_Total)\Percentage processortijd"

    In the regitry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\Perflib\009 you can translate the strings to numbers:

    Processor => 238
    % Processor Time => 6

    So the numeric path will be:

    Num: "\238(_Total)\6"

    In the Item configuration the key value to retrieve the processor time will be:

    perf_counter["\238(_Total)\6"]

    This value will work on all windows servers/workstations in any language.

    To Alexei: Perhaps you could include this in the manual as an example?

    Comment

    • Andreas Bollhalder
      Senior Member
      Zabbix Certified Specialist
      • Apr 2007
      • 144

      #3
      For performance counter of the OS, it works so far. Only on Windows Server 2008, I couldn't get it to work with the ZABBIX agent 1.6.2.

      Using the numeric values doesn't help with applications like Citrix or Kaspersky AntiVirus, because they are different from installation to installation

      Andreas
      Zabbix statistics
      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

      Comment

      Working...