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?
<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?