Well for those of you who don’t now what Cucumber is: Cucumber in general is a behaviour driven development system, which uses native language to explain whats going on. Cucumber-Nagios adapts this and turns your monitoring in a tool where you can express different behaviours for your applications, e.g.:
Feature: google.com
It should be up
And I should be able to search for things
Scenario: Searching for things
When I go to "http://www.google.com.au/"
And I fill in "q" with "wikipedia"
And I press "Google Search"
Then I should see "www.wikipedia.org"
It took me some time so figure out that the RubyGems from the Ubuntu Repo is a pain in the ass, but finally Cucumber-Nagios is now working on my Ubuntu boxes …
root@sbxx:~# aptitude install ruby rdoc ruby-dev irb libxslt-dev libxslt-ruby libopenssl-ruby
root@sbxx:~# wget http://rubyforge.org/frs/download.php/75309/rubygems-1.8.10.tgz
root@sbxx:~# tar xfz rubygems-1.8.10.tgz
root@sbxx:~# cd rubygems-1.8.10/
root@sbxx:~# ruby setup.rb
root@sbxx:~# ln -s /usr/bin/gem1.8 /usr/bin/gem
root@sbxx:~# gem install cucumber-nagios
