mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #696: enable host monitoring and fix minor bugs in watch_helper
This commit is contained in:
parent
decff3d31c
commit
3fe28c5dd2
src/acct
@ -106,7 +106,7 @@ if CONF[:MONITORING_STEPS] > 0
|
||||
host_pool ||= OpenNebula::HostPool.new(one_client)
|
||||
|
||||
watcher.add(vm_monitoring, CONF[:MONITORING_STEPS], vm_pool)
|
||||
#watcher.add(host_monitoring, CONF[:MONITORING_STEPS], host_pool)
|
||||
watcher.add(host_monitoring, CONF[:MONITORING_STEPS], host_pool)
|
||||
end
|
||||
|
||||
step = 0
|
||||
|
@ -121,6 +121,7 @@ module WatchHelper
|
||||
foreign_key :host_id, :hosts
|
||||
Integer :last_poll
|
||||
Integer :timestamp
|
||||
Integer :state
|
||||
|
||||
HOST_SAMPLE.each { |key,value|
|
||||
column key, value[:type]
|
||||
@ -286,9 +287,9 @@ module WatchHelper
|
||||
set_schema do
|
||||
Integer :id, :primary_key=>true
|
||||
String :name
|
||||
Integer :im_mad
|
||||
Integer :vm_mad
|
||||
Integer :tm_mad
|
||||
String :im_mad
|
||||
String :vm_mad
|
||||
String :tm_mad
|
||||
end
|
||||
|
||||
create_table unless table_exists?
|
||||
@ -303,7 +304,7 @@ module WatchHelper
|
||||
h.name = host['NAME']
|
||||
h.im_mad = host['IM_MAD']
|
||||
h.vm_mad = host['VM_MAD']
|
||||
h.tm_nad = host['TM_MAD']
|
||||
h.tm_mad = host['TM_MAD']
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user