You are here

Simple linux script to moniter mysql slave threads

*/3 * * * * /usr/bin/mysql -uroot -p******** -e "show slave status\G"|grep Running|awk '{ if($2=="No") { print |"mail -s \"replication is down\" doulapalli.srihari@gmail.com"};}'