View Single Post
Posts: 9 | Thanked: 1 time | Joined on Jan 2010
#216
I was actually able to accomplish it by this thanks to the awesome people on freenode's #linux

first i created a script called qwebcheck in /usr/bin
Code:
wget --timeout=10 -O /dev/null http://theserveruwanttocheck.xxx/somefile.html
if [ $? -eq 1 ] ; then exit 2 ; fi
echo "System OK"
chmod the script +x and then add a new command and type in your script name and WALA!

Last edited by TheSov; 2010-03-30 at 04:59.