Ad Widget

Collapse

Percent cpu time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wolflikes
    Junior Member
    • Oct 2007
    • 8

    #1

    Percent cpu time

    Does anyone know how to get zabbix to show % cpu time same as windows does? I'm using 1.4.2 server and 1.4.2 agent.

    I hope I haven't missed the info somewhere. If I have, could someone please point me to a link.

    Thanks All
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #2
    system.cpu.util[all,idle,avg1]

    That will show you idle time so % used is 100%-idle % = used %. There are other things you can do but to get a true equivalent to the % used in windows task manager you need to monitor idle in *nix and subtract from the total (100%). Unfortunately ZABBIX doesn't allow for math in items so you need to look at it backwards when looking at the data and graphs - you want a higher number not a lower number.

    Comment

    • Jes
      Junior Member
      • Mar 2008
      • 5

      #3
      hello,
      i use the /proc/stat file, with some operation the result of CPU used is in %.

      Code:
      system.run[head -1 /proc/stat | awk {' print (100-($5*100)/($2+$3+$4+$5)) '}]
      hope it help
      Last edited by Jes; 21-05-2008, 15:50.

      Comment

      • Robert Wagnon
        Member
        • Jan 2008
        • 47

        #4
        Windows Active Agent?

        This doesn't work on Windows Active Agents. Any other suggestions?

        Comment

        Working...