Env:
Zabbix Agent 2.0
Host: CentOS 6.5 (running MariaDB 5.5.x)
On the host:
1) I have configured the agent and am running it in both active and passive modes
2) I have the MySQL credentials file /etc/zabbix/.my.cnf:
On server:
I have linked the MySQL template to the host.
Problem:
The agent fails to authenticate with mysql (mariadb) despite the .my.cnf file.
If I specify the credentials in the UserParameters as in:
then it works.
The second problem is that mysql.ping trigger issues an alarm when the server goes down but does not issue a recovery notification when the server comes back up.
What could be the root cause of these problems?
Thanks,
/Kobe
Zabbix Agent 2.0
Host: CentOS 6.5 (running MariaDB 5.5.x)
On the host:
1) I have configured the agent and am running it in both active and passive modes
2) I have the MySQL credentials file /etc/zabbix/.my.cnf:
Code:
[mysql] user=zabbix password=SecretCode [mysqladmin] user=zabbix password=SecretCode
I have linked the MySQL template to the host.
Problem:
The agent fails to authenticate with mysql (mariadb) despite the .my.cnf file.
If I specify the credentials in the UserParameters as in:
Code:
UserParameter=mysql.status[*],echo "show global status where Variable_name='$1';" | HOME=/var/lib/zabbix mysql -u zabbix -pSecretCode -N | awk '{print $$2}'
The second problem is that mysql.ping trigger issues an alarm when the server goes down but does not issue a recovery notification when the server comes back up.
What could be the root cause of these problems?
Thanks,
/Kobe
Comment