mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
(cherry picked from commit fd72766ec5)
This commit is contained in:
1 parent
95f5d6ee8f
commit
d3c51cf9d4
1 file changed
+7
-2
@@ -103,7 +103,8 @@ class ClusterComputeResource
|
||||
num_hosts,
|
||||
num_eff_hosts,
|
||||
overall_status,
|
||||
drs_enabled = @item.collect("summary.totalCpu",
|
||||
drs_enabled,
|
||||
ha_enabled= @item.collect("summary.totalCpu",
|
||||
"summary.numCpuCores",
|
||||
"summary.effectiveCpu",
|
||||
"summary.totalMemory",
|
||||
@@ -111,7 +112,8 @@ class ClusterComputeResource
|
||||
"summary.numHosts",
|
||||
"summary.numEffectiveHosts",
|
||||
"summary.overallStatus",
|
||||
"configuration.drsConfig.enabled"
|
||||
"configuration.drsConfig.enabled",
|
||||
"configuration.dasConfig.enabled"
|
||||
)
|
||||
|
||||
mhz_core = total_cpu.to_f / num_cpu_cores.to_f
|
||||
@@ -149,6 +151,9 @@ class ClusterComputeResource
|
||||
# DRS enabled
|
||||
str_info << "VCENTER_DRS=" << drs_enabled.to_s << "\n"
|
||||
|
||||
# HA enabled
|
||||
str_info << "VCENTER_HA=" << ha_enabled.to_s << "\n"
|
||||
|
||||
str_info << monitor_resource_pools(mhz_core)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user