Quellcode durchsuchen

Add new plugin: mysql

Emmanuel Bouthenot vor 1 Jahr
Ursprung
Commit
c6e9abdd3f
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  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"