summaryrefslogtreecommitdiff
path: root/agent/mysql_repl
blob: fc2bf6765f31c8e0ef52a7a4a8cd060770ad264d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
#
# by Christain Pointner <equinox@helsinki.at> - 28/07/15

echo "<<<mysql_repl>>>"

mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "SHOW SLAVE STATUS\G" 2>/dev/null | sed 's/^ *//' | sed '/^*/d'

exit 0