Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I set up Nagios 3 to monitor a webpage? I would like to make sure it stays online. Also, if possible, I would like to have it check the page for a string to make sure the page is valid.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

You can use the plugin check_http. It has an option called -s, --string=STRING String to expect in the content.

share|improve this answer

The Nagios check_http plugin does exactly what you're asking, and more.
Refer to the Nagios Manual for information on how to set up Nagios and configure plugins if you are unsure how to do so.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.