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.
Dig Deeper on Linux servers
Related Q&A from James Turnbull
A user wants to implement OSSEC on a Windows server because he has no server side Linux operating system. Continue Reading
Solaris 10 Trusted Extensions and SELinux are best suited to different system requirements and administrator skill sets. Our security expert explains... Continue Reading
Configuring spam filters Spamassassin and dspam together in the email server Postfix is easy with the resources listed by our security expert. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.