Revision 8c30c1f7 src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb | ||
---|---|---|
2329 | 2329 |
# monitoring |
2330 | 2330 |
############################################################################ |
2331 | 2331 |
|
2332 |
def monitor(esx_host_cpu, stats)
|
|
2332 |
def monitor(stats) |
|
2333 | 2333 |
|
2334 | 2334 |
reset_monitor |
2335 | 2335 |
|
... | ... | |
2339 | 2339 |
|
2340 | 2340 |
return if @state != VM_STATE[:active] |
2341 | 2341 |
|
2342 |
cpuMhz = esx_host_cpu[@vm_info["runtime.host"]._ref]
|
|
2342 |
cpuMhz = @vm_info[:esx_host_cpu]
|
|
2343 | 2343 |
|
2344 | 2344 |
@monitor[:used_memory] = @vm_info["summary.quickStats.hostMemoryUsage"].to_f * 1024 |
2345 | 2345 |
|
... | ... | |
2440 | 2440 |
diskrdiops = @monitor[:diskrdiops] |
2441 | 2441 |
diskwriops = @monitor[:diskwriops] |
2442 | 2442 |
|
2443 |
esx_host = @vm_info["cluster_name"].to_s
|
|
2443 |
esx_host = @vm_info[:esx_host_name].to_s
|
|
2444 | 2444 |
guest_state = @vm_info["guest.guestState"].to_s |
2445 | 2445 |
vmware_tools = @vm_info["guest.toolsRunningStatus"].to_s |
2446 | 2446 |
vmtools_ver = @vm_info["guest.toolsVersion"].to_s |
Also available in: Unified diff