diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-07-27 23:36:46 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-07-27 23:36:46 (GMT) |
commit | aac38b5a8f1bf5eb9888b79bf7d8e599c271e99b (patch) | |
tree | 6028c5f29a0f144cb48889d53c0c17eca2f79205 /agent/mysql-repl | |
parent | b65d51dc04f9addd6689d8a02bd348f7773e0150 (diff) |
added check agent for mysql replication
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..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 |