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

I have a web server image that I am responsible for building across multiple servers. I have a list of about 50 URL's that I am supposed to go to and confirm the correct content is showing up. Which automated tools exist to do this easily (without writing a bunch of curl requests and regexes in a script file) .

share|improve this question

3 Answers 3

up vote 1 down vote accepted

I have my doubts that you'll find anything easier than curl (or wget) and a few lines of $SCRIPTING_LANGUAGE_OF_CHOICE. Seriously, it's about 5 minutes work. In Ruby (slightly complicated by the fact that Net::HTTP is furgly):

require 'net/http'

$stdin.each_line do |l|
  url, content = l.split(/\s+/, 2)
  puts "#{url} failed!" unless Net::HTTP.get(URI.parse(url))=~ /#{content}/
end
share|improve this answer

While I agree with the sentiment that curl/wget and scripting can get the job done well, if you are really looking for another way, consider penetration testing tools. Especially if you need to interact with the site, for example to log in to the site, these tools will allow you to automate your testing. Of course, you will still need to do a little work to configure/script the tool to do what you need.

share|improve this answer

This people offer a service http://siteuptime.com, I do think you don't need them but it could be useful.

You could make a PHP (Or in the language you're websites are up) to check status on services.

check status > wget > grep

share|improve this answer
    
Oh, reposted what Womble said, Silly me. –  user39621 Apr 3 '10 at 15:14

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.