So I'm working on my first zabbix installation.
One of the things I would like zabbix to monitor is it's own mysql database.
Reading through documentation it seems pretty straightforward.
I ensure that the HOME= parameters in the /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf match the location of my .my.cnf file. (For me I put it in /etc/zabbix, chmod 400, chown zabbix:zabbix).
I tested the file by using the following command:
Sure enough it connects to mysql as the zabbix user I have defined. Works great! So I restarted my zabbix agent, and I immediately see the following errors in the agent log:
So despite following (from what I can tell) the steps I need to get zabbix to connect to mysql for it's monitoring information, it's trying to login to the mysql database as root without entering a password. (Despite the zabbix agent running as the zabbix user)
Help?
One of the things I would like zabbix to monitor is it's own mysql database.
Reading through documentation it seems pretty straightforward.
I ensure that the HOME= parameters in the /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf match the location of my .my.cnf file. (For me I put it in /etc/zabbix, chmod 400, chown zabbix:zabbix).
I tested the file by using the following command:
Code:
mysql --defaults-file=/etc/zabbix/.my.cnf
Code:
mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Help?
Comment