mysql主从同步监控小脚本 可以将其结合nagios监控,用来做监控报警:#!bin/sh#file is slave_repl.sh#Author by Kevin#date is 2011-11-13 declare-a slave_stat slave_stat=($(/apps/usr/mysql-3307/bin/mysql-h slave_hostname-uroot-p...
mysql主从同步监控小脚本(加强版):新版本脚本增加了“当发现同步出现无法同步的时候”会自动提取主库的file号,以及pos,进行同步主库,脚本内容如下:#!bin/sh#set-x#file is slave_repl.sh#Author by Kevin#date is 2011-11-13 mstool="/...