httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cahya Wirawan <cwira...@email.archlab.tuwien.ac.at>
Subject Re: [users@httpd] Testing if a Webserver is down
Date Thu, 31 Oct 2002 17:06:06 GMT
Ok, I forget to check the unknown host, in your case it was succesfull 
connected and get http answer because if the host unknown, it connected 
to localhost and you have a webserver running on localhost :)
also I just inserted one line to check the host.

cahya.

On Thu, Oct 31, 2002 at 10:43:29AM -0500, Kyle wrote:
> Cahya,
> 
> The program you attached always gives a "successful" reply even for 
> non-existent servers.  :(
> 
> I only wanted to run it once, so I changed the "while(1){" to "if(1){" 
> to make it run one time.  I wanted to see the failure output, so he 
> server I chose to test was a fake one: www.asdfljja.com
> 
> Here is what happens on one of my servers:
> [dustdevil:/test root]# ./checkwebserver.pl
> Thu Oct 31 10:16:48 2002: Testing www.asdfljja.com on port 80 ...
> Thu Oct 31 10:16:48 2002: GET / answered.
> Thu Oct 31 10:16:48 2002: Connected successfully.
> 
> But there is no such server.
> 
> BTW, I think this approach is great.  It is a compromise between the 
> complexity of the wget/ultramonkey suggestions and the simplistic ping 
> options, which I think is a good fit for the majority of the Apache 
> sysadmins.  If you correct the problem, I hope you will repost your 
> program to the group.
> 
> -Kyle
> 

Mime
View raw message