Univention Bugzilla – Bug 35196
Show CPU load of virtualization hosts
Last modified: 2018-12-12 13:45:36 CET
Ticket#: 2014061821000579 It would be nice if we could show the CPU load of physical hosts in UVMM.
libvirt nowadays supports "nodecpustat", which could be used to display CPU stats for the host. <http://libvirt.org/html/libvirt-libvirt.html#virNodeGetCPUStats>: # python2.6 import libvirt c = libvirt.open('qemu:///system') print c.getCPUStats(-1, 0) # {'kernel': 13922090000000L, 'idle': 4899846310000000L, 'user': 49853930000000L, 'iowait': 16129360000000L} Bug #15757 shows how to use that and creates a RRD graph with some history. A auto-updates graph using Dojo would probably be better; code for that is also attached at that bug.
Guess what happens for xen: # python 2.6 import libvirt c = libvirt.open('xen+unix:///') print c.getCPUStats(-1, 0) # libvir: error : this function is not supported by the connection driver: virNodeGetCPUStats # None
(In reply to Philipp Hahn from comment #2) > Guess what happens for xen: As Xen is no longer supported with UCS-4.x, we can finally implement this using virNodeGetCPUStats()
There is a Customer ID set so I set the flag "Enterprise Customer affected".
*** This bug has been marked as a duplicate of bug 48083 ***
ommit 94f3e0dcc48a7cc8b99ae4c54efcdf9e118f7e60 Author: Jürn Brodersen <brodersen@univention.de> Date: Wed Nov 21 23:44:01 2018 +0100 Subject: Bug #48083: Fix tree update and show ressources in tree
[4.3-3] f99717e953 Bug #47617, Bug #47741, Bug #36661, Bug #48199, Bug #48024, Bug #45498, Bug #35196 Package: univention-virtual-machine-manager-daemon Version: 7.0.0-17A~4.3.0.201812111413 Branch: ucs_4.3-0 Scope: errata4.3-3 [4.3-3] 582fb65dce Bug #47617: univention-virtual-machine-manager-daemon 7.0.0-17A~4.3.0.201812111413 doc/errata/staging/univention-virtual-machine-manager-daemon.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
<http://errata.software-univention.de/ucs/4.3/382.html>