[ZBXNEXT-2325] CPU %guest utilization Created: 2014 Jun 01  Updated: 2014 Oct 27  Resolved: 2014 Oct 27

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G), Templates (T)
Affects Version/s: 2.3.0
Fix Version/s: 2.5.0

Type: Change Request Priority: Minor
Reporter: Jan Garaj Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: cpu, newitemkey, virtualization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Since Linux 2.6.24



 Description   

Please implement %guest utilization.

Since Linux 2.6.24 cpu utilization contains also %guest utilization, which is the time spent running a virtual CPU for guest operating systems under the control of the Linux kernel.
Current Zabbix doesnt' support this utilization - tested 2.3.1 (revision 45994). Keep in mind that guest usage is not always available - it depends on kernel version.

root@debian:~/zabbix# mpstat -P ALL 1 1
Linux 3.2.0-4-amd64 (debian)    01/06/14        _x86_64_        (2 CPU)

14:19:15     CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
14:19:16     all    0.00    0.00    2.01    0.00    0.00    0.00    0.00    0.00   97.99
14:19:16       0    0.00    0.00    3.03    0.00    0.00    0.00    0.00    0.00   96.97
14:19:16       1    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00

Average:     CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
Average:     all    0.00    0.00    2.01    0.00    0.00    0.00    0.00    0.00   97.99
Average:       0    0.00    0.00    3.03    0.00    0.00    0.00    0.00    0.00   96.97
Average:       1    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00


 Comments   
Comment by Alexander Vladishev [ 2014 Sep 03 ]

Also, since Linux 2.6.33 cpu utilization contains %guest_nice.

Comment by Juris Miščenko (Inactive) [ 2014 Sep 04 ]

Change implemented at svn://svn.zabbix.com/branches/dev/ZBXNEXT-2325

Comment by Andris Zeila [ 2014 Sep 09 ]

(1) CPU collector does not parse the guest, guest_nice values from /proc/stat

jurism RESOLVED

wiper CLOSED

Comment by Andris Zeila [ 2014 Sep 09 ]

Successfully tested

Comment by Juris Miščenko (Inactive) [ 2014 Sep 15 ]

Feature merged in 2.5.0 (trunk) at r48979.

Comment by Aleksandrs Saveljevs [ 2014 Sep 15 ]

(2) Documentation should be updated, at least in the following locations:

"What's new" for Zabbix 3.0 should probably be updated, too.

jurism Documented. RESOLVED.

wiper shouldn't 3.0 documentation be updated rather than 2.4 ?

jurism Entries moved to the correct documentation versions.

wiper CLOSED

Generated at Fri Apr 26 21:27:37 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.