diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-07-28 01:04:22 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-07-28 01:04:22 (GMT) |
commit | 52ed2e0cccc51ae0656fae0f8802c80d6c2a527a (patch) | |
tree | 8cf6d1357b899ab2099b74cf7f5caea8e9785d2f /agent/mysql_repl | |
parent | aac38b5a8f1bf5eb9888b79bf7d8e599c271e99b (diff) |
renamed agent plugin and added check for mysql_repl
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 |