mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Feature #650: Update script to run the monitoring application.
This commit is contained in:
parent
9ce774a392
commit
e83ab3062b
@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
MONITOR_INTERVAL= 10 #secs
|
||||
MONITOR_INTERVAL= ARGV[1]? ARGV[1].to_i : 60 #secs
|
||||
|
||||
$: << File.dirname(__FILE__)
|
||||
|
||||
require 'HostMonitor.rb'
|
||||
require 'VMMonitor.rb'
|
||||
|
||||
FILE="/srv/cloud/one-dummy/logs/"
|
||||
FILE= ARGV[0]? ARGV[0]: "#{ENV['ONE_LOCATION']}/logs/"
|
||||
|
||||
hostm = HostMonitor.new(FILE+"host")
|
||||
vmm = VMMonitor.new(FILE+"vm")
|
||||
|
Loading…
x
Reference in New Issue
Block a user