ZABBIX Forums  
Old 18-05-2015, 10:16
T.K. T.K. is offline
Junior Member
Join Date: May 2015
Posts: 2
Question Discovery of Performance Counter Instances


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:

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:

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

I also tried the Test on the console with:

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:

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?

Reply With Quote
Old 18-05-2015, 16:14
T.K. T.K. is offline
Junior Member
Join Date: May 2015
Posts: 2

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

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?

Reply With Quote
Old 02-09-2015, 15:19
jrouvier jrouvier is offline
Junior Member
Join Date: Sep 2015
Posts: 1

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]
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 17:37.