How to monitor websphere services down?

if websphere services is down, any unix command or scripts can send alert?

#!/usr/bin/ksh
CHECK=`ps -ef | grep -v grep | grep websphere | wc -l`
if [ $CHECK = 0 ]
then
echo "Websphere is down" | mailx -s "websphere is down" user@domain.com
fi