Kaynağa Gözat

Add new plugin: mysql

Emmanuel Bouthenot 1 yıl önce
ebeveyn
işleme
c6e9abdd3f
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      plugins/client/mysql/conf/mysql.conf

+ 7 - 0
plugins/client/mysql/conf/mysql.conf

@@ -0,0 +1,7 @@
+UserParameter=mysql.ping[*], mysqladmin -h "$1" -P "$2" ping
+UserParameter=mysql.get_status_variables[*], mysql -h "$1" -P "$2" -sNX -e "show global status"
+UserParameter=mysql.version[*], mysqladmin -s -h "$1" -P "$2" version
+UserParameter=mysql.db.discovery[*], mysql -h "$1" -P "$2" -sN -e "show databases"
+UserParameter=mysql.dbsize[*], mysql -h "$1" -P "$2" -sN -e "SELECT COALESCE(SUM(DATA_LENGTH + INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='$3'"
+UserParameter=mysql.replication.discovery[*], mysql -h "$1" -P "$2" -sNX -e "show slave status"
+UserParameter=mysql.slave_status[*], mysql -h "$1" -P "$2" -sNX -e "show slave status"