I have installed Zabbix server that is attempting to monitor multiple MySql servers. I am running into issues receiving the information on monitored MySql server because I don't think I completed the configuration correctly. The issue is that each of the MySql servers runs instances on multiple ports. So for example, server 1 runs three instances on ports 3321, 3322 and 3331. I tried following these instructions http://blog.themilkyway.org/2013/11/...ate-app-mysql/, but instead of creating one .my.cnf file, I created one for each of the ports: .my3321.cnf, .my3322.cnf and .my3331.cnf. Inside the files I specified:
I restarted zabbix-agent on that host, but I keep getting this error in the Zabbix dashboard:
Received value [mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
Clearly, I did not configure something correctly. Do you have a set of instructions to follow to configure MySql server running on a single host and running instances on multiple ports? Please let me know if I need to provide more information.
Thank you very much for your help.
Code:
[mysql] user=zabbix password=123456 port=3321 socket=/var/lib/mysql-3321/mysql.sock [mysqladmin] user=zabbix password=123456 port=3321 socket=/var/lib/mysql-3321/mysql.sock
Received value [mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
Clearly, I did not configure something correctly. Do you have a set of instructions to follow to configure MySql server running on a single host and running instances on multiple ports? Please let me know if I need to provide more information.
Thank you very much for your help.
Comment