Hello,
On Centos (5/6) I have an error for the user parameter for mysql mysql.size.
The configuration for the mysql template should be ok since all other parameters are ok and data are ok on the zabbix server (mysql.status, mysql.ping, mysql.version).
But for mysql.size here is what I have :
grep =mysql.size userparameter_mysql.conf
UserParameter=mysql.size[*],echo "select sum($(case "$3" in both|"") echo "data_length+index_length";; data|index) echo "$3_length";; free) echo "data_free";; esac)) from information_schema.tables$([[ "$1" = "all" || ! "$1" ]] || echo " where table_schema='$1'")$([[ "$2" = "all" || ! "$2" ]] || echo "and table_name='$2'");" | HOME=/etc/zabbix mysql -N
zabbix_agentd -t mysql.size
mysql.size [t|sh: command substitution: line 0: syntax error near unexpected token `newline'
sh: command substitution: line 0: `case "" in both|""'
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'data_length+index_length' at line 1]
On Centos (5/6) I have an error for the user parameter for mysql mysql.size.
The configuration for the mysql template should be ok since all other parameters are ok and data are ok on the zabbix server (mysql.status, mysql.ping, mysql.version).
But for mysql.size here is what I have :
grep =mysql.size userparameter_mysql.conf
UserParameter=mysql.size[*],echo "select sum($(case "$3" in both|"") echo "data_length+index_length";; data|index) echo "$3_length";; free) echo "data_free";; esac)) from information_schema.tables$([[ "$1" = "all" || ! "$1" ]] || echo " where table_schema='$1'")$([[ "$2" = "all" || ! "$2" ]] || echo "and table_name='$2'");" | HOME=/etc/zabbix mysql -N
zabbix_agentd -t mysql.size
mysql.size [t|sh: command substitution: line 0: syntax error near unexpected token `newline'
sh: command substitution: line 0: `case "" in both|""'
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'data_length+index_length' at line 1]
Comment