Project

monit

0.07
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Retrieve server information from Monit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.9.0
~> 1.11.0

Runtime

~> 3.2.12
~> 1.5.2
 Project Readme

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.