Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10710

system.cpu.util show incorrect utilization

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.0.2
    • Agent (G)
    • None
    • Sprint 19, Sprint 20, Sprint 21
    • 6

      The zabbix agent send incorrect utilization of cpu which twice less than output of top command:

      On agent server:

      [root@xxx]# top|grep Cpu
      %Cpu(s): 84.6 us,  8.3 sy,  0.0 ni,  5.5 id,  0.0 wa,  0.0 hi,  1.6 si,  0.0 st
      %Cpu(s): 82.8 us,  8.7 sy,  0.0 ni,  6.9 id,  0.0 wa,  0.0 hi,  1.6 si,  0.0 st
      %Cpu(s): 84.9 us,  9.4 sy,  0.0 ni,  4.0 id,  0.0 wa,  0.0 hi,  1.7 si,  0.0 st
      %Cpu(s): 82.7 us,  9.1 sy,  0.0 ni,  6.5 id,  0.0 wa,  0.0 hi,  1.7 si,  0.0 st
      %Cpu(s): 84.1 us,  8.1 sy,  0.0 ni,  6.0 id,  0.1 wa,  0.0 hi,  1.7 si,  0.0 st
      %Cpu(s): 84.9 us,  8.1 sy,  0.0 ni,  5.6 id,  0.0 wa,  0.0 hi,  1.4 si,  0.0 st
      %Cpu(s): 84.3 us,  7.9 sy,  0.0 ni,  6.2 id,  0.0 wa,  0.0 hi,  1.6 si,  0.0 st
      

      At the same time on zabbix server:

      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[]
      49.139935
      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[,user]
      49.171261
      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[,system]
      4.926904
      
      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[]
      49.079076
      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[,user]
      49.082120
      [root@yyy bin]# zabbix_get -sxxx -p10050 -k system.cpu.util[,system]
      4.890176
      

      And the same incorrect values for another server:

      [root@xxx2 ~]# top|grep Cpu
      %Cpu(s): 96.6 us,  2.7 sy,  0.0 ni,  0.1 id,  0.0 wa,  0.0 hi,  0.6 si,  0.0 st
      %Cpu(s): 96.5 us,  2.8 sy,  0.0 ni,  0.2 id,  0.0 wa,  0.0 hi,  0.5 si,  0.0 st
      %Cpu(s): 96.3 us,  3.0 sy,  0.0 ni,  0.1 id,  0.0 wa,  0.0 hi,  0.6 si,  0.0 st
      %Cpu(s): 94.3 us,  4.6 sy,  0.0 ni,  0.3 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
      %Cpu(s): 96.2 us,  2.7 sy,  0.0 ni,  0.2 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
      %Cpu(s): 96.2 us,  2.7 sy,  0.0 ni,  0.4 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
      %Cpu(s): 95.2 us,  2.9 sy,  0.0 ni,  1.1 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
      %Cpu(s): 95.9 us,  2.7 sy,  0.0 ni,  0.7 id,  0.0 wa,  0.0 hi,  0.6 si,  0.0 st
      %Cpu(s): 96.4 us,  2.6 sy,  0.0 ni,  0.5 id,  0.0 wa,  0.0 hi,  0.5 si,  0.0 st
      
      [root@ bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[]
      49.773875
      [root@yyy bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[,user]
      49.734167
      [root@yyy bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[,system]
      1.461466
      
      [root@yyy bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[]
      49.714295
      [root@yyy bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[,user]
      49.711913
      [root@yyy bin]# zabbix_get -sxxx2 -p10050 -k system.cpu.util[,system]
      1.471862
      

      In attach the screenshot for cpu.util from this 2 servers.
      I can reproduce this also in anouther servers, not only this 2

            valdis Valdis Kauķis (Inactive)
            dmizyk Dmitry Zykov
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: