1、编写脚本检查主从同步状态
2、编辑zabbix_agentd.conf,增加行
UserParameter=mysql.replication,sh /data/sh/mysql_db_check.sh
3、添加监控项
4、添加触发器
5、关闭主从同步测试