Ad Widget

Collapse

How can I show my CPU usage in percentage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NomenNescio
    Member
    • Jan 2009
    • 70

    #1

    How can I show my CPU usage in percentage?

    So for example, if my cpu's max speed is 2.4 Gigahertz, how can I show in % how much I'm using?
  • dotneft
    Senior Member
    • Nov 2008
    • 699

    #2
    Originally posted by NomenNescio
    So for example, if my cpu's max speed is 2.4 Gigahertz, how can I show in % how much I'm using?
    system.cpu.util[<cpu> <,type><,mode>]

    Processor load in percents

    cpu - CPU number (default is all CPUs)
    type - one of idle, nice, user (default), system
    mode - one of avg1 (default),avg5 (average within 5 minutes), avg15

    Example: system.cpu.util[0,user ,avg5]

    Zabbix Manual 105 page

    Comment

    • NomenNescio
      Member
      • Jan 2009
      • 70

      #3
      Thanks but isn't there a better way than that? That doesn't method doesn't work on windows. Is there a better way? Also, is there a way to get the opposite of idle time, because, Solaris does not support system time but if I get the opposite of idle time ( 100.0 - idle time) I get to see how much cpu is being used. Is such a thing possible?

      Comment

      • ataylo13
        Senior Member
        • Feb 2007
        • 122

        #4
        system.cpu.util[,,avg1] = % utilization across all cpus. works on linux and windows
        Version : 1.8.8
        Current Configuration 1 Master and 3 Child Nodes

        Comment

        • NomenNescio
          Member
          • Jan 2009
          • 70

          #5
          So these values mean how much % is being used?
          Attached Files

          Comment

          • ataylo13
            Senior Member
            • Feb 2007
            • 122

            #6
            Yes.But I would log into the box and verify that the numbers match.
            Version : 1.8.8
            Current Configuration 1 Master and 3 Child Nodes

            Comment

            • NomenNescio
              Member
              • Jan 2009
              • 70

              #7
              Ah okay, thank you. :-)

              Comment

              • bbrendon
                Senior Member
                • Sep 2005
                • 870

                #8
                Originally posted by NomenNescio
                So for example, if my cpu's max speed is 2.4 Gigahertz, how can I show in % how much I'm using?
                You can't find total CPU utilization as a percentage.
                Code:
                system.cpu.util[,,avg1]
                ...This shows user CPU usage and not total. The only way to get the total is by using a custom parameter.
                Unofficial Zabbix Expert
                Blog, Corporate Site

                Comment

                • jroberson
                  Senior Member
                  • May 2008
                  • 124

                  #9
                  This is what I use as a key:
                  Code:
                   perf_counter[\Processor(_Total)\% Processor Time]
                  That seems to work for most of my Windows systems. You can find the whole list of these if you run "perfmon" from that host and then you can just find the counter (right-click on graph and "add coutner") in Perfmon. Then open the properties for it and copy-paste it into the key field after "perf_counter" You can monitor a lot more things in Windows this way.

                  Comment

                  • NomenNescio
                    Member
                    • Jan 2009
                    • 70

                    #10
                    Okay thank you

                    Comment

                    • nima0102
                      Senior Member
                      • May 2010
                      • 106

                      #11
                      Originally posted by bbrendon
                      You can't find total CPU utilization as a percentage.
                      Code:
                      system.cpu.util[,,avg1]
                      ...This shows user CPU usage and not total. The only way to get the total is by using a custom parameter.
                      Hi
                      I have found your reply after search on forum.
                      I need to "cpu utilization" for all CPUs in percent. but with this solution can I get cpu utilization??

                      Thanks in advance

                      Comment

                      • Lozzano
                        Junior Member
                        • Jan 2011
                        • 12

                        #12
                        Hey,

                        I would like a key that shows both user and system load in %'s combined, how would I do that?

                        - Lozz

                        Comment

                        Working...