Click to See Complete Forum and Search --> : website checker


TGrimace
04-28-2003, 03:15 PM
I have a script that checks to see if our websites are up, and alerts me if they've gone down. It's a very simple script that looks like this:

<code>
wget --spider -q --tries=1 ***.***.***.***
if [ $? != 0 ]
then
# alert me
fi
</code>

The problem is that this can take quite a while to see if the site is up or not. And the one that checks my secure site:
<code>
wget --spider -q --tries=1 https://***.***.***.***
if [ $? != 0 ]
then
# alert me
fi
</code>

Seems to take forever. Does anyone know of a better way to do this?

stiles
04-28-2003, 04:10 PM
mon (http://www.kernel.org/software/mon/)?

SPo0n
04-28-2003, 04:46 PM
you could use php and sockets