Web Service Monitoring
To test your web service is up and running, you could this with a very simple httest script.
Further more you are able to do more complicated stuff, like login, posts and many more you could not with a simple wget or telnet.
Simple Monitor Test
The following simple example will give you a good starting point.
monitor.htt file contains:
CLIENT
_REQ your.host 80
__GET /your/link HTTP/1.1
__Host: your.host
__
_EXPECT . "HTTP/1.1 200 Ok"
_WAIT
END
shell script contains:
#!/bin/bash
/usr/bin/httest -s monitor.htt
if [ $? eq 0 ]
echo service available
else
echo service not available
fi
The httest will return a 0 if it was successful.