Ad Widget

Collapse

Windows service CPU utilization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohit1993
    Junior Member
    • Feb 2018
    • 21

    #1

    Windows service CPU utilization

    Hello guys, I am new in zabbix.

    I just wanted to capture how much my cpu is utilize by server and process or service which is running on that server.

    Code:
    perf_counter[\Processor(_Total)\% Processor Time]  //working fine
    for particular process try like this

    Code:
    perf_counter["\Process(textProcess)\% Processor Time"]
    and this

    Code:
    perf_counter["\Process(textProcess)\% User Time"]
    but above item not giving me proper cpu utilization.
  • tcilmo
    Senior Member
    • Nov 2016
    • 122

    #2
    Originally posted by mohit1993
    Hello guys, I am new in zabbix.

    I just wanted to capture how much my cpu is utilize by server and process or service which is running on that server.

    Code:
    perf_counter[\Processor(_Total)\% Processor Time]  //working fine
    for particular process try like this

    Code:
    perf_counter["\Process(textProcess)\% Processor Time"]
    and this

    Code:
    perf_counter["\Process(textProcess)\% User Time"]
    but above item not giving me proper cpu utilization.
    To monitor CPU utilization in Windows, use performance counter: \Processor(_Total)\% Processor Time. What is wrong with this counter?

    Here are more details on that counter: https://technet.microsoft.com/en-us/.../cc938603.aspx

    If you want to capture load (which is different) you can use these items:
    1. system.cpu.load[percpu,avg1]
    2. system.cpu.load[percpu,avg5]
    3. system.cpu.load[percpu,avg15]


    Individual process in Windows is tricky because the value is based out of total number of cores. If a box have 4 cores, the value collected would be out of 400%.

    Comment

    • mohit1993
      Junior Member
      • Feb 2018
      • 21

      #3
      Originally posted by tcilmo
      To monitor CPU utilization in Windows, use performance counter: \Processor(_Total)\% Processor Time. What is wrong with this counter?

      Here are more details on that counter: https://technet.microsoft.com/en-us/.../cc938603.aspx

      If you want to capture load (which is different) you can use these items:
      1. system.cpu.load[percpu,avg1]
      2. system.cpu.load[percpu,avg5]
      3. system.cpu.load[percpu,avg15]


      Individual process in Windows is tricky because the value is based out of total number of cores. If a box have 4 cores, the value collected would be out of 400%.

      Code:
      perf_counter[\Processor(_Total)\% Processor Time]  //working fine
      this above one giving me proper cpu utilization.

      I understand what u said about Individual process. that why

      Code:
      perf_counter["\Process(textProcess)\% Processor Time"]
      this above item giving me random value but do you have any other solution for Individual process.

      Comment

      • mohit1993
        Junior Member
        • Feb 2018
        • 21

        #4
        is any one here who monitor windows individual process using zabbix???

        Comment

        • Spoonman
          Member
          • Aug 2013
          • 45

          #5
          Originally posted by mohit1993
          is any one here who monitor windows individual process using zabbix???
          Yes. Works great.

          Comment

          • mohit1993
            Junior Member
            • Feb 2018
            • 21

            #6
            Originally posted by Spoonman
            Yes. Works great.
            How did you got particular process cpu utilization value using zabbix??
            Last edited by mohit1993; 21-02-2018, 12:29.

            Comment

            • tcilmo
              Senior Member
              • Nov 2016
              • 122

              #7
              Originally posted by mohit1993
              Code:
              perf_counter[\Processor(_Total)\% Processor Time]  //working fine
              this above one giving me proper cpu utilization.

              I understand what u said about Individual process. that why

              Code:
              perf_counter["\Process(textProcess)\% Processor Time"]
              this above item giving me random value but do you have any other solution for Individual process.
              I use: perf_counter[\Process(processname)\% Processor Time]. It works fine, just have to keep in mind that number of cores on that box. The value is out of that. 4 cores = 400 %, so you can have a value 200% and still have a lot of processor left. I don't believe there is a counter for the data you see in task manager.

              Comment

              • Spoonman
                Member
                • Aug 2013
                • 45

                #8
                Originally posted by mohit1993
                How did you got particular process cpu utilization value using zabbix??
                Sorry, I misunderstood your question....
                Thought you meant howto monitor an individual Windows process (for example "firefox.exe").

                Comment

                • mohit1993
                  Junior Member
                  • Feb 2018
                  • 21

                  #9
                  Originally posted by Spoonman
                  Sorry, I misunderstood your question....
                  Thought you meant howto monitor an individual Windows process (for example "firefox.exe").
                  Yes Exactly that what i mean howto monitor an individual Windows process

                  Comment

                  • Spoonman
                    Member
                    • Aug 2013
                    • 45

                    #10
                    Originally posted by mohit1993
                    Yes Exactly that what i mean howto monitor an individual Windows process
                    - create Template with the process name
                    - key = proc.num[firefox.exe]
                    - Expression = {Template Firefox Processroc.num[firefox.exe].last(0)}=0

                    Comment

                    Working...