Hi all.
I have a problem with mysql (MariaDB-10.3.31) monitoring by zabbix-agent, system parameters like CPU, memory and other works fine.
Agent configuration (Ubuntu 20.04): zabbix-agent-4.0.17+dfsg-1
Userparameter:
/etc/zabbix mysql/.my.cnf:
On server in logs i see:
And in web dashboard i see: No data for Template DB MySQL by Zabbix agent.
Could you help me?
I have a problem with mysql (MariaDB-10.3.31) monitoring by zabbix-agent, system parameters like CPU, memory and other works fine.
Agent configuration (Ubuntu 20.04): zabbix-agent-4.0.17+dfsg-1
Code:
PidFile=/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix-agent/zabbix_agentd.log LogFileSize=100 Server=10.10.10.254 ServerActive=10.10.10.254 Hostname=db.mydomain.tld Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf
Code:
UserParameter=mysql.status[*],echo "show global status where Variable_name='$1';" | HOME=/etc/zabbix mysql -N | awk '{print $$2}'
UserParameter=mysql.size[*],bash -c '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'
UserParameter=mysql.ping,HOME=/etc/zabbix mysqladmin ping | grep -c alive
UserParameter=mysql.version,mysql -V
Code:
[client] user = zabbix_user password = password
Code:
2346141:20211005:165120.440 item "db.mydomain.tld:mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]" became not supported: Unsupported item key.
2346141:20211005:165120.440 item "db.mydomain.tld:mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"]" became not supported: Unsupported item key.
2346141:20211005:165120.551 item "db.mydomain.tld:mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]" became not supported: Unsupported item key.
2346133:20211005:171151.192 discovery rule "db.mydomain.tld:mysql.db.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]" became not supported: Unsupported item key.
2346134:20211005:171152.483 discovery rule "db.mydomain.tld:mysql.replication.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]" became not supported: Unsupported item key.
2346142:20211005:205101.938 error reason for "db.mydomain.tld:mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"]" changed: Item does not allow parameters.
2346142:20211005:205103.237 error reason for "db.mydomain.tld:mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]" changed: Item does not allow parameters.
Could you help me?
Comment