httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Ingolfsland" <Ke...@Ingolfsland.net>
Subject RE: [users@httpd] Testing if a Webserver is down
Date Thu, 31 Oct 2002 11:07:24 GMT
WGET (http://www.gnu.org/software/wget/wget.html) would be a good solution.
You can have it download a page from somewhere on your site.   Then you
could check to see if the page was actually downloaded (or wget might even
return an error code if it couldn't connect... not sure).  If the page
wasn't downloaded you could then perform whatever recovery action you needed
to.

I agree with Boyle Owen that a custom perl script would be a more powerful,
flexible, and all around better solution... but it would not be as easy to
implement.

Kevin Ingolfsland

-----Original Message-----
From: Jochen K├Ąchelin [mailto:jk@linux.amsjk.de]
Sent: Wednesday, October 30, 2002 8:17 PM
To: valhalla-list@redhat.com
Subject: [users@httpd] Testing if a Webserver is down


What is the most reliable way to test if a Webserver died
(httpd died, network down, no longer reachable) using a bash-script
running a loop?

If the bash-script recognized that the webserver is down I wan't
a  backup-server  to  shutdown  the  ip  and  restart  with the died
webservers' ip to his job until the original webserver is restored.

--
Jochen Kaechelin


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message