Announcement

Collapse
No announcement yet.

Discovery of Performance Counter Instances

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Discovery of Performance Counter Instances

    Hi,

    I have tried for days to create a discovery (LLD) for windows performance counters, but I just do not get it working.

    I found a Bug-Report where I got some information:


    https://support.zabbix.com/browse/ZBXNEXT-2247


    There someone wrote:

    To use the discovery rule, use key 'perf_counter.discovery[<Category>]'.
    This will return ' {#INSTANCE}' names which you then use in Discovery Rule Item Prototypes like 'perf_counter[<Category>({#INSTANCE})\CounterName]'

    But it seems that everytime I try to use a key like perf_counter.discovery I receive a error on the client like: active check is not supported.

    Perhaps I am using the wrong syntax for <CATEGORY> but I can not find any documentation for this, so I tried the Following:

    Code:
    perf_counter.discovery[\Prozessor]
    perf_counter.discovery[\Prozessor(*)]
    perf_counter.discovery[\Prozessor(*)\Benutzerzeit (%)]
    But nothing seems to work.

    I also tried the Test on the console with:

    Code:
    zabbix_agentd.exe -t perf_counter.discovery[Prozessor]
    zabbix_agentd.exe -t perf_counter.discovery[Prozessor()]
    zabbix_agentd.exe -t perf_counter.discovery[\Prozessor]
    zabbix_agentd.exe -t perf_counter.discovery[\Prozessor(*)]
    zabbix_agentd.exe -t perf_counter.discovery[„Prozessor“]
    zabbix_agentd.exe -t perf_counter.discovery[„Prozessor()“]
    zabbix_agentd.exe -t perf_counter.discovery[„\Prozessor“]
    zabbix_agentd.exe -t perf_counter.discovery[„\Prozessor(*)“]
    But I only receive:

    Code:
    perf_counter.discovery[…]    [m|ZBX_NOTSUPPORTED] [Unsupported item key.]



    Has anyone a idea what is going wrong?

    Or a tip to point me in the right direction?

    b.r.
    T.K.

    #2
    Searching around I just found this one as dublicate of the Bugreport/Feature-Request:

    https://support.zabbix.com/browse/ZBXNEXT-1839

    Now I wonder, why this is still not working, because the last update on this is from 2014 Nov 04 14:35.

    How do other people monitor their Windows Boxes if Performance Counter are not accessible?

    And finally, is there a chance to get this feature in the windows client some day?

    b.r.
    T.K.

    Comment


      #3
      Maybe some help for that, i didn't find anything online.
      A UserParameter to retreive all instances of a perf counter (could be certainly optimized )

      UserParameter=perf_counter.discovery[*],powershell -C "$coma='';write-output '{\"data\":[';typeperf -qx \"$1\" | where {$.StartsWith(\"$1\")} | select $ | % { $_ -replace '.*\(([^\)]+)\).*', '$$1' } | sort | get-unique | % { ($coma + '{\"{#INSTANCE}\":\"' + $_ + '\"}'); $coma=','; }; write-output \"]}\""

      Usage in discovery : perf_counter.discovery[\Process]
      And in item prototype : perf_counter[\Process({#INSTANCE})\ID Process]

      Comment

      Working...
      X