Hello,
I'm experiencing something strange with the MySQL template (mysql.ping item)
I have 2 MySQL servers, both with the same userparameter in /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf :
On both servers, I also have /etc/zabbix/.my.cnf (the credentials in .my.cnf have been tested)
The problem is that on 1 server, the zabbix agent returns me the right value (1) and on the second server, the agent returns me 0, but MySQL service is running, I can connect to the DB, and if I run the command manually it returns me the right value (1) :
or
The agent that is returning the right value is version 3.4.4 and the other one is 3.4.11
Did someone already encountered this issue?
Thanks in advance
Best regards,
Philippe
I'm experiencing something strange with the MySQL template (mysql.ping item)
I have 2 MySQL servers, both with the same userparameter in /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf :
Code:
UserParameter=mysql.ping,HOME=/etc/zabbix mysqladmin -s ping | grep -c alive
On both servers, I also have /etc/zabbix/.my.cnf (the credentials in .my.cnf have been tested)
The problem is that on 1 server, the zabbix agent returns me the right value (1) and on the second server, the agent returns me 0, but MySQL service is running, I can connect to the DB, and if I run the command manually it returns me the right value (1) :
Code:
[root@h042d1app02p ~]# mysqladmin --defaults-file=/etc/zabbix/.my.cnf -s ping | grep -c alive 1
Code:
[root@h042d1app02p ~]# HOME=/etc/zabbix mysqladmin -s ping | grep -c alive 1
Did someone already encountered this issue?
Thanks in advance
Best regards,
Philippe
Comment