A Ruby interface for Monit.
Just like any other gem:
gem install monit
status = Monit::Status.new({ :host => "monit.myserver.com",
:auth => true,
:username => "foo",
:password => "bar" })
status.get # => true
status.platform # => <Monit::Platform:0x00000003673dd0 ... >
status.platform.cpu # => 2
status.platform.memory # => 4057712
For more options see the API documentation
The gem is only compatible with Ruby 1.8.7 and above, including JRuby 1.6+. For the build status, check Travis CI.
Copyright (c) 2010 - 2012 Matias Korhonen
Licensed under the MIT license, see the LICENSE file for details.