Ad Widget

Collapse

CPU Utilization on the Zabbix server not correct

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hepi62
    Junior Member
    • Sep 2022
    • 10

    #1

    CPU Utilization on the Zabbix server not correct

    Hi,

    I have an issue with the CPU utilization in Zabbix. The Zabbix shows the utilization on the Zabbix server (Ubuntu Server 22.04) is around 90%.
    However, when I check on the server using TOP or HTOP, it shows the utilization is around 10% only. I'm not a Linux expert. Am I missing something?

    Click image for larger version

Name:	image.png
Views:	1173
Size:	521.0 KB
ID:	467333Click image for larger version

Name:	image.png
Views:	1104
Size:	47.1 KB
ID:	467334
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Are you setting up Zabbix to get the CPU utilization of the entire OS? If so, please also consider the CPU utilization rate used by processes other than the mariadbd process running on the OS. It seems that multiple mariadbd processes are running on the Linux OS, and other processes are running for the OS to function.

    Comment

    • hepi62
      Junior Member
      • Sep 2022
      • 10

      #3
      I'm using the default "Linux by Zabbix agent" template without any change. I'm assuming it's getting the CPU utilization of the entire OS.
      Is there any way in Linux to check the full usage? I'm still confused about why huge the difference between Zabbix and HTOP.​

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Looking at the image you showed, the CPU usage is 10.1% for the first mariadbd, 3.4% for the second mariadbd, 2.0% for the third mariadbd, and so on. doing. Zabbix will display the value of 90% which is the sum of them.
        Various processes are running in parallel on the OS. The 10% CPU utilization of mariadbd you are comparing is only a small part of what is being done on the OS. To see how much load is on your server as a whole, you need to look at all the processes doing things in parallel.​

        Comment

        • hepi62
          Junior Member
          • Sep 2022
          • 10

          #5
          Hi Atsushi,

          Here is the full screenshot below. From my understanding, at the top, it shows the two cores' usage, around 12% of each. If I add all processes' CPU usage, that's around 30% for the two cores. However, Zabbix still shows around 90% CPU utilization.

          Click image for larger version

Name:	image.png
Views:	1102
Size:	792.7 KB
ID:	467410

          As I mentioned, I'm not a Linux or Zabbix expert, and I don't know where that difference is coming from.​

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            Only a small part of the processes running on the OS can be checked with the htop command. Try using the ps command to check. For example:
            Code:
            $ ps aux

            Comment

            Working...