Sha256: 95ce019c02eeebd2cccb4abc7fab10ec152f913021dd02a90ae5b2341ae2f158
Contents?: true
Size: 500 Bytes
Versions: 22
Compression:
Stored size: 500 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty/lite" Dir["#{File.dirname(__FILE__)}/../lib/poolparty/monitors/base_monitor.rb"].each {|f| require f} monitor = ARGV.pop || "cpu" begin Dir["#{File.dirname(__FILE__)}/../lib/poolparty/monitors/monitors/#{monitor}_monitor.rb"].each {|f| require f} klass = eval("PoolParty::Monitors::#{monitor.capitalize}Monitor") print (klass.send :run).to_f rescue -1.0 rescue Exception => e puts -1.0 end
Version data entries
22 entries across 22 versions & 3 rubygems