To view the background task, type the following URL. Of course you need a blackboard account to see the results of this query
http://${URL}/webapps/blackboard/admin/view_system_tasks.jsp
Showing posts with label monitoring. Show all posts
Showing posts with label monitoring. Show all posts
Saturday, May 8, 2010
Use of HTTPing to check web and app
# ------------------------------------------------------------
# Auto restart blackboard services if http is not responding
# ------------------------------------------------------------
hostname=`uname -n`
COUNT=`httping -c 1 -g ${hostname}| grep -v grep | grep '100.00% failed' | wc -l`
if [ $COUNT = 1 ]; then
echo "Apache is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.restart
fi
#------------------------------------------
# Checks whether tomcat is running
#------------------------------------------
COUNT=`httping -s -c 1 -g http://${hostname}/webapps/login/ | grep -v grep | grep 'Service Temporarily Unavailable' | wc -l`
if [ $COUNT = 1 ]; then
echo "Tomcat is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.appserver.restart
fi
COUNT=`httping -s -c 1 -g http://${hostname}/webapps/login/ | grep -v grep | grep '100.00% failed' | wc -l`
if [ $COUNT = 1 ]; then
echo "Tomcat is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.appserver.restart
fi
# Auto restart blackboard services if http is not responding
# ------------------------------------------------------------
hostname=`uname -n`
COUNT=`httping -c 1 -g ${hostname}| grep -v grep | grep '100.00% failed' | wc -l`
if [ $COUNT = 1 ]; then
echo "Apache is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.restart
fi
#------------------------------------------
# Checks whether tomcat is running
#------------------------------------------
COUNT=`httping -s -c 1 -g http://${hostname}/webapps/login/ | grep -v grep | grep 'Service Temporarily Unavailable' | wc -l`
if [ $COUNT = 1 ]; then
echo "Tomcat is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.appserver.restart
fi
COUNT=`httping -s -c 1 -g http://${hostname}/webapps/login/ | grep -v grep | grep '100.00% failed' | wc -l`
if [ $COUNT = 1 ]; then
echo "Tomcat is not responding"
/usr/local/blackboard/tools/admin/ServiceController.sh services.appserver.restart
fi
Subscribe to:
Posts (Atom)
