zabbix監控主從

客戶端: 1,編寫腳本/usr/local/mysql-scripts/mysql-replication.sh #!/bin/bash /usr/local/mysql/bin/mysql -uzabbix -e 'show slave status\G' |grep -E "Slave_IO_Running|Slave_SQL_Running"|awk '{print $2}'|grep -c
相關文章
相關標籤/搜索