1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #2911: change monitor attributes keys for ESX hosts within vCenter to ease Sunstone integration

This commit is contained in:
Tino Vazquez 2014-09-29 12:53:15 +02:00 committed by Ruben S. Montero
parent b6f6cf5eeb
commit 8ae6ff9052

View File

@ -359,12 +359,12 @@ class VCenterHost < ::OpenNebula::Host
host_info << "HOSTNAME=\"" << h.name.to_s << "\","
host_info << "MODELNAME=\"" << hw.cpuModel.to_s << "\","
host_info << "CPUSPEED=" << hw.cpuMhz.to_s << ","
host_info << "TOTALCPU=" << total_cpu.to_s << ","
host_info << "USEDCPU=" << used_cpu.to_s << ","
host_info << "FREECPU=" << free_cpu.to_s << ","
host_info << "TOTALMEMORY=" << total_memory.to_s << ","
host_info << "USEDMEMORY=" << used_memory.to_s << ","
host_info << "FREEMEMORY=" << free_memory.to_s
host_info << "MAX_CPU=" << total_cpu.to_s << ","
host_info << "USED_CPU=" << used_cpu.to_s << ","
host_info << "FREE_CPU=" << free_cpu.to_s << ","
host_info << "MAX_MEMORY=" << total_memory.to_s << ","
host_info << "USED_MEMORY=" << used_memory.to_s << ","
host_info << "FREE_MEMORY=" << free_memory.to_s
host_info << "]"
}