Feature #650: Update script to run the monitoring application.

This commit is contained in:
Hector Sanjuan authored and Ruben S. Montero committed 2011-06-03 17:24:09 +02:00
1 parent 9ce774a392
commit e83ab3062b
1 file changed
+2 -2
@@ -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")