diff --git a/zabbix_agentd.d/script/dbMonitor.sh b/zabbix_agentd.d/script/dbMonitor.sh index f62ab17..a11dc36 100644 --- a/zabbix_agentd.d/script/dbMonitor.sh +++ b/zabbix_agentd.d/script/dbMonitor.sh @@ -77,12 +77,12 @@ function RemoteUser(){ echo $_result } -case $2 in +case $1 in heartbeat) Heartbeat ;; crud) - Crud $3 # insert update delete select commit rollback qps tps + Crud $2 # insert update delete select commit rollback qps tps ;; twins) Twins @@ -91,7 +91,7 @@ slowlog) SlowLog ;; config) - Config $3 # max_connections innodb_buffer_pool_size ... + Config $2 # max_connections innodb_buffer_pool_size ... ;; ruser) RemoteUser