Ad Widget

Collapse

Need item to return processor time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bryancan
    Junior Member
    • Sep 2006
    • 22

    #1

    Need item to return processor time

    I need to create an item that will give me processor time for the zabbix_zgent on a windows machine...
  • JonB
    Member
    • Oct 2006
    • 63

    #2
    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

    Comment

    • mrogers
      Junior Member
      • Feb 2007
      • 9

      #3
      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.

      Matt

      Comment

      • chispyder
        Junior Member
        • Jun 2007
        • 9

        #4
        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!

        Jeff

        Comment

        • rolandsym
          Member
          • Jul 2007
          • 76

          #5
          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,

          RolandSym

          Comment

          • chispyder
            Junior Member
            • Jun 2007
            • 9

            #6
            rolandsym,

            Thanks, that was the ticket!
            Sorry - I am a UNIX geek thrust into the Windows world

            Comment

            Working...