Skip to content
Browse files

Let's deal with a realistic example

  • Loading branch information...
1 parent b7f9a16 commit 493e9643c89b33a810b7e5f05b1b1dcd8ff5ee81 @vinibaggio vinibaggio committed Jan 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.markdown
View
6 README.markdown
@@ -25,11 +25,11 @@ So, summing it all up, Nagios in Ruby, much cooler!
Consider the following example:
- class WebOutpostExample < Outpost::DSL
- depends WebScout => "web page" do
+ class HttpOutpostExample < Outpost::DSL
+ depends HttpScout => "web page" do
options :host => 'localhost', :port => 3000
report :up, :response_code => 200
- report :up, :response_time => {:less_than => 100}
+ report :down, :response_body => {:match => /Ops/}
end
end
outpost = WebOutpostExample.new

0 comments on commit 493e964

Please sign in to comment.
Something went wrong with that request. Please try again.