Ruby interface for Monit
Ruby
Latest commit ace9381 Dec 13, 2016 @matiaskorhonen committed on GitHub Updates the badges
Permalink
Failed to load latest commit information.
lib
spec fix broken indentation Apr 29, 2013
.gitignore
.rspec Adds the .rspec file [ci skip] Apr 14, 2013
.travis.yml Update .travis.yml Dec 13, 2016
Gemfile Updates the rubygems source Feb 26, 2013
LICENSE Preparing for release Sep 11, 2010
README.md Updates the badges Dec 13, 2016
Rakefile set rspec as the default rake task Apr 25, 2013
monit.gemspec Indicate license in gemspec May 21, 2016

README.md

Monit Rubygem

A Ruby interface for Monit.

Installation

Just like any other gem:

gem install monit

Usage

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

# => start/stop/restart/monitor/unmonitor
status.services.each do |service|
  service.stop!
end

For more options see the API documentation

Compatibility and Build Status

Build Status Code Climate

The gem is only compatible with Ruby 1.8.7 and above, including JRuby 1.6+. For the build status, check Travis CI.

License and copyright

Copyright © 2010 - 2013 Matias Korhonen & contributors

Licensed under the MIT license, see the LICENSE file for details.