Scorebutt is an uptime monitoring tool with its own DSL (Domain Specific Language) that allows one to easily watch and check services for various statuses such as uptime, file availability, and more. It was created initially by The Evergreen State College's Collegiate Cyber Defense Competition team. Feel free to fork and contribute!
Add this line to your application's Gemfile:
gem 'scorebutt'
And then execute:
$ bundle
Or install it yourself as:
$ gem install scorebutt
- Install the gem (
gem install scorebutt
) - Require it (
require 'scorebutt'
) - Create a Scorer object (
Scorebutt::Scorer.new(sleep_time: 10)
) - Call
.watch
on the object passing it a block of things to watch.
Example:
require 'scorebutt'
our_watcher = Scorebutt::Scorer.new(sleep_time: 10) # In seconds
our_watcher.watch do
host '192.168.1.5' do
http
smtp
ftp
telnet
ssh
end
end
A sample spec is available here
Just run the spec with ruby and it'll watch and report back any up/down services!
####Currently, Scorebutt supports: (please add to this list!)
- http
- Fork it
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the forked repo (
git push origin master
) - Create new Pull Request