| Recipe 36 | Monitor 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access