1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #2470: Add column for zombie virtual machines

Patch from http://dev.opennebula.org/issues/2470

Changed so this new column is not displayed by default and the output
does not differ too much from 4.2.

(cherry picked from commit f1d8cfb197852cddcbef25b56b03e58eada35887)
This commit is contained in:
Javi Fontan 2013-11-19 16:10:26 +01:00 committed by Ruben S. Montero
parent 35525e44c4
commit 09e494f356
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,10 @@
:desc: Number of Virtual Machines running
:size: 3
:ZVM:
:desc: Number of Virtual Machine zombies
:size: 3
:TCPU:
:desc: Total CPU percentage
:size: 4

View File

@ -53,6 +53,10 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
d["HOST_SHARE"]["RUNNING_VMS"]
end
column :ZVM, "Number of Virtual Machine zombies", :size=>3 do |d|
d["TEMPLATE"]["TOTAL_ZOMBIES"] || 0
end
column :TCPU, "Total CPU percentage", :size=>4 do |d|
d["HOST_SHARE"]["MAX_CPU"]
end