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

Version Path
auser-poolparty-1.1.1 bin/server-get-load
auser-poolparty-1.1.3 bin/server-get-load
auser-poolparty-1.1.4 bin/server-get-load
auser-poolparty-1.1.5 bin/server-get-load
auser-poolparty-1.1.6 bin/server-get-load
auser-poolparty-1.1.7 bin/server-get-load
auser-poolparty-1.2.0 bin/server-get-load
auser-poolparty-1.2.1 bin/server-get-load
auser-poolparty-1.2.10 bin/server-get-load
auser-poolparty-1.2.11 bin/server-get-load
auser-poolparty-1.2.12 bin/server-get-load
auser-poolparty-1.2.2 bin/server-get-load
auser-poolparty-1.2.3 bin/server-get-load
auser-poolparty-1.2.4 bin/server-get-load
auser-poolparty-1.2.7 bin/server-get-load
auser-poolparty-1.2.8 bin/server-get-load
auser-poolparty-1.2.9 bin/server-get-load
fairchild-poolparty-1.1.3 bin/server-get-load
fairchild-poolparty-1.1.4 bin/server-get-load
fairchild-poolparty-1.1.5 bin/server-get-load