mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
parent
eb0d18db96
commit
fd72766ec5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user