I need to create an item that will give me processor time for the zabbix_zgent on a windows machine...
Ad Widget
Collapse
Need item to return processor time
Collapse
X
-
byancan,
You would need to set up an Item with the key
perf_counter[\Process(zabbix_agentd)\% Processor Time]
However you will need to either update to the latest SVN version or wait for 1.4.1 and upgrade as '%' is currently not supported in a key.
Changes for 1.4.1:
- added availability of using "[&'%" character for key (Eugene)
Jon -
Still not clear
I am trying to pull a few things from perfmon counters but I am unsure of how to do it. More specifically IIS information but really just need to learn how this works in general.
I have read the http://www.zabbix.com/forum/showthread.php?t=6153 post and gotten the available counters using the typeperf -qx command. However the rest of the post didn't click. Not real sure what the vbs is for, nor which of the syntax examples is the one I should be using.
I have tried the following but none seem to work.
UserParameter=zbbxAgent.processorTime,"\Process(za bbix_agentd)\% Processor Time",5
PerfCounter=zbbx_Agent_PT,"\Process(zabbix_agentd) \% Processor Time",5
After reading this post I tried:
UserParameter=system.freeMemory,[\Memory\Available MBytes]
however this one didn't work either.
I know the memory example can probably be done just through the agent however I am trying to get a working example of how to pull a perfmon counter.
What part am I missing?
Thanks in advance for the help.
MattComment
-
Eugene,
I am using the 1.4.1 adentd on a Win2K machine. I am attempting to get processor time for a specific process as in this thread. You mention the use of "[&'%". I can not get a result...
C:\Zabbix>zabbix_agentd.exe --t perf_counter[\Process(java)\% User Time]
[m|ZBX_NOTSUPPORTED]
C:\Zabbix>zabbix_agentd.exe --t perf_counter[\Process(java)\[&'% User Time]
[m|ZBX_NOTSUPPORTED]
''%' is not recognized as an internal or external command,
operable program or batch file.
What am I missing here? Please help!
JeffComment
-
I am using the 1.4.1 adentd on a Win2K machine. I am attempting to get processor time for a specific process as in this thread. You mention the use of "[&'%". I can not get a result...
C:\Zabbix>zabbix_agentd.exe --t perf_counter[\Process(java)\% User Time]
[m|ZBX_NOTSUPPORTED]
C:\Zabbix>zabbix_agentd.exe --t perf_counter[\Process(java)\[&'% User Time]
[m|ZBX_NOTSUPPORTED]
''%' is not recognized as an internal or external command,
operable program or batch file.
it should be perf_counter["\Process(java)\% User Time"]
Whenever there are spaces in the perf counter item you want make sure to use quotes.
Hope this helps,
RolandSymComment
Comment