You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mayl Support <su...@mayl.net> on 2002/11/04 22:28:46 UTC
Re: [users@httpd] Testing if a Webserver is down
IP Sentry is a great program I use.
----- Original Message -----
From: "Cahya Wirawan" <cw...@email.archlab.tuwien.ac.at>
To: <us...@httpd.apache.org>
Sent: Thursday, October 31, 2002 9:06 AM
Subject: Re: [users@httpd] Testing if a Webserver is down
> 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
> >
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> 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