Monitoring Web pages using Nagios
We use Nagios to monitor our network services and servers, and we want to monitor the average time that it takes to read some specific Web pages. I've done some research in order to build a script to be run by Nagios using wget, but didn't manage to find a way to measure this time. How could we achieve it?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The easiest way to do this is use the check_http plug-in. This provides the response time from a specified Web site. For example,

host# check_http -I 192.168.0.1 -u /test_page.html -w 3 -c 4

The -I option specifies the IP address of the host running the web site to be tested, -u specifies the exact path you wish to check (defaults to /) and the -w and -c options specify the period in seconds which, if exceeded, will trigger the WARNING or CRITICAL status respectively.

You can see the other options available with this plug-in using the -h option. The check_http plug-in comes with the default plug-ins package.

This was first published in June 2006