Hi all,
I've been using Zabbix for years but recently changed jobs, and my old account was linked to my work email account, hence starting afresh
I'm running Zabbix 2.4.7 and my agent is working fine on this particular Debian host for monitoring standard linux processes, but I have a MySQL instance on this host that I want to monitor. I have added the template to the relevant host in the front-end, but when I configure /etc/zabbix/zabbix_agentd.d/.my.cnf with MySQL credentials, the agent now refuses to start.
This user works and can login to SQL on this particular host. It was given the following permissions: GRANT USAGE ON *.* TO 'zabbix'@'localhost' IDENTIFIED BY 'zabbix_mysql_password'; (as well as the same on 127.0.0.1) as mentioned here: http:// blog.themilkyway.org / 2013 / 11 / how-to-monitor-mysql-using-the-new-zabbix-template-app-mysql (spaces added due to spam filter)
/etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf contains the following:

I have followed the instructions and set the HOME path to be the path with the .my.cnf file but the agent just refuses to start - I receive the following:
ian@magnesium:/etc/zabbix/zabbix_agentd.d$ sudo service zabbix-agent start
[....] Starting Zabbix agent: zabbix_agentdian@magnesium:/etc/zabbix/zabbix_agentd.d$
And when I do ps aux | grep zabbix, I can't see the agent running as usual.
Any help would be greatly appreciated!
I've been using Zabbix for years but recently changed jobs, and my old account was linked to my work email account, hence starting afresh

I'm running Zabbix 2.4.7 and my agent is working fine on this particular Debian host for monitoring standard linux processes, but I have a MySQL instance on this host that I want to monitor. I have added the template to the relevant host in the front-end, but when I configure /etc/zabbix/zabbix_agentd.d/.my.cnf with MySQL credentials, the agent now refuses to start.
Code:
[mysql] user=zabbix password=zabbix_sql_password [mysqladmin] user=zabbix password=zabbix_sql_password
/etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf contains the following:

I have followed the instructions and set the HOME path to be the path with the .my.cnf file but the agent just refuses to start - I receive the following:
ian@magnesium:/etc/zabbix/zabbix_agentd.d$ sudo service zabbix-agent start
[....] Starting Zabbix agent: zabbix_agentdian@magnesium:/etc/zabbix/zabbix_agentd.d$
And when I do ps aux | grep zabbix, I can't see the agent running as usual.
Any help would be greatly appreciated!
Comment