summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rwxr-xr-xagent/mysql-repl9
1 files changed, 9 insertions, 0 deletions
diff --git a/agent/mysql-repl b/agent/mysql-repl
new file mode 100755
index 0000000..7a8b54f
--- /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