Recipe 36Monitor a Web Service Using Nagios and Cucumber

Problem

You’re monitoring the uptime of your web service with Nagios. The HTTP monitoring built into Nagios gives a quick up/down status. You want to add more advanced information to this report. Specifically, you want to run some acceptance tests to see whether your servers are showing the right content.

Ingredients

  • A monitoring server running Nagios[234]

  • The cucumber-nagios gem[235] for producing reports in a format easily understood by Nagios

  • Webrat[236] for testing web pages

  • Nokogiri[237] for parsing HTML results

  • Bundler[238] for installing Ruby libraries onto the monitoring server

Solution

Nagios is an open source tool that gauges the health of your network. It does so by ...

Get Cucumber Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.