Skip to content

Commit

Permalink
version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vinibaggio committed Feb 1, 2011
1 parent f1fafc5 commit a4a878a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,39 @@ It should report a status per declared system.
The idea is to make a reliable framework for the Ruby developer to create his own monitoring rules.
So, summing it all up, Nagios in Ruby, much cooler!

## Installing

gem install outpost

## Starting

To create your Outposts, you must require 'outpost'. You also need to include
'outpost/scouts' if you want to use the supplied scouts. Example:

require 'outpost'
require 'outpost/scouts'

class Bla < Outpost::DSL
using Outpost::Scouts::Http => "web page" do
options :host => 'localhost', :port => 3000
report :up, :response_code => 200
end
end

a = Bla.new
a.run
p a.messages # => ["Outpost::Scouts::Http: 'web page' is reporting up."]


## How it works

Consider the following example:

require 'outpost'
require 'outpost/scouts'

class HttpOutpostExample < Outpost::DSL
using Scouts::Http => "web page" do
using Outpost::Scouts::Http => "web page" do
options :host => 'localhost', :port => 3000
report :up, :response_code => 200
report :down, :response_body => {:match => /Ops/}
Expand Down
3 changes: 3 additions & 0 deletions lib/outpost/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Outpost
VERSION = "0.1.0".freeze
end
21 changes: 21 additions & 0 deletions outpost.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$:.push File.expand_path("../lib", __FILE__)
require "outpost/version"

Gem::Specification.new do |s|
s.name = "outpost"
s.version = Outpost::VERSION.dup
s.description = "Simple service monitoring with a clean DSL for configuration."
s.summary = "Simple service monitoring with a clean DSL for configuration."
s.author = "Vinicius Baggio Fuentes"
s.email = "vinibaggio@gmail.com"
s.homepage = "http://www.github.com/vinibaggio/outpost"

s.rubyforge_project = "outpost"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_dependency("net-ping", "~> 1.3.7")
end

0 comments on commit a4a878a

Please sign in to comment.