diff options
Diffstat (limited to 'agent/mysql_repl')
-rwxr-xr-x | agent/mysql_repl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/agent/mysql_repl b/agent/mysql_repl new file mode 100755 index 0000000..fc2bf67 --- /dev/null +++ b/agent/mysql_repl @@ -0,0 +1,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 |