Ad Widget

Collapse

Real CPU use?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ittec
    Member
    • Mar 2008
    • 73

    #1

    Real CPU use?

    Hi

    these question is the tipically question that everybody ask someday in his live. How can we know the real value of Linux load? In Windows we have a Task Manager and graphic interface to see the % of cpu load. But in Linux only have cpu load that is more hard to know whats going on.

    So using Zabbix Software, How you check yours CPU loads servers? Here explain more or less the sense of my question.



    So I will thank you if someone want to share his experiences.

    Thanks!
  • sterno
    Junior Member
    • Jan 2006
    • 24

    #2
    I use the kernel's performance counters under /proc/stat.

    Comment

    • swaterhouse
      Senior Member
      • Apr 2006
      • 268

      #3
      you can use cpu.util on linux. The tricky part is if you want a graph like Task Manager you really need to graph 100 - idle% but as of now its impossible to do in ZABBIX because items and graphs can't do math. I just monitor idle% and graph it and switch my brain when viewing to remember 98% constant "usage" is a good thing.

      Comment

      • just2blue4u
        Senior Member
        • Apr 2006
        • 347

        #4
        I use the % idle value, too. It's simply the best, even for triggers.
        Big ZABBIX is watching you!
        (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

        Comment

        • ittec
          Member
          • Mar 2008
          • 73

          #5
          with Zabbix

          Thanks to all

          interesting anwers but, How is the simple or easiest way to do this with Zabbix? Or better, with normal items and triggers by default of zabbix, What is the best combination of them to imagine the real situation of cpuy?

          Im using now "Processor Load" that is a good reference but not to do a completely image of cpu stat.

          thanks

          Comment

          • bbrendon
            Senior Member
            • Sep 2005
            • 870

            #6
            I recommend two things.

            1. Petition for someone to fix the unix agents so we can get total cpu utilization
            2. in the meantime, you can create an item such as the following to get cpu usage:
            system.run[sar -P ALL 1 2 | grep 'Average.*all' | awk -F" " '{ print 100.0-$NF }']
            Unofficial Zabbix Expert
            Blog, Corporate Site

            Comment

            • ittec
              Member
              • Mar 2008
              • 73

              #7
              Thanks, now I have some graphs with Cpu.load and cpu.iddle time.

              Bye

              Comment

              • israel dominguez
                Junior Member
                • Jul 2007
                • 12

                #8
                hello

                i have a plobem, i'm not know How breakdown the CPU? i need know what consumer process my CPU

                Comment

                • ittec
                  Member
                  • Mar 2008
                  • 73

                  #9
                  Shell

                  I don't know if zabbix support something as this but if you had acces by ssh to your host, you would run "top" command and see the values of any process. Sorry, I can't help you more

                  Bye

                  Comment

                  • israel dominguez
                    Junior Member
                    • Jul 2007
                    • 12

                    #10
                    sorry my server in monitoring is windows

                    Comment

                    • ittec
                      Member
                      • Mar 2008
                      • 73

                      #11
                      ups

                      This is another question my friend. Perhaps someone here can help you with Windows monitoring through Zabbix, but I say the same. Connect to your host by Terminal Server and list process with "Task Manager". List the process by cpu %.

                      Bye

                      Comment

                      • swaterhouse
                        Senior Member
                        • Apr 2006
                        • 268

                        #12
                        Originally posted by israel dominguez
                        i have a plobem, i'm not know How breakdown the CPU? i need know what consumer process my CPU

                        In windows you can use performance monitor to monitor the cpu utilization of individual processes.

                        Comment

                        • israel dominguez
                          Junior Member
                          • Jul 2007
                          • 12

                          #13
                          ok Tanks, i always working in servers unix, in windows how minitor the cpu utilization of individual processes. i have make a .bat or .exe????

                          Comment

                          • israel dominguez
                            Junior Member
                            • Jul 2007
                            • 12

                            #14
                            Good

                            with proc_info monitor process of CPU


                            win-bxisqla2k5p64b-quest_sc_mw 10 Apr 10:41:39 731140 +1406
                            win-bxisqla2k5p64b-quest_sc_mw_g 10 Apr 10:41:36 16875 +32
                            win-bxisqla2k5p64b-quest_sc_rep_g 10 Apr 10:41:36 3500
                            win-bxisqla2k5p64b-sqlservr-ktime 10 Apr 10:41:36 0
                            win-bxisqla2k5p64b-sqlservr-utime 10 Apr 10:41:37 0

                            but the more important is the sql and this show cero???

                            Comment

                            Working...