I am facing issue with mysql monitoring. I want to monitor my zabbix server database but I am getting below error
Warning: World-writable config file '/var/lib/zabbix/.my.cnf' is ignored
mysqladmin: connect to server at '10.18.xx.xxx' failed
error: 'Can't connect to MySQL server on '10.18.xx.xxx' (13)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
I have verified below
1. user zbx_monitor has been created with permission GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';
2. I am able to login to zabbix database with user zbx_monitor
3. I have created file /var/lib/zabbix/.my.cnf file and privided username and password as below
[client]
user=zbx_monitor
password=<password>
4. copied file to /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf
5. My /etc/passwd file looks like this
zabbix:x:994:580:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
6. Assigned the template Template DB MySQL by Zabbix agent to database host
7. created Host Macro {$MYSQL.HOST} with DB IP
Can someone help me , how can I get this working
Warning: World-writable config file '/var/lib/zabbix/.my.cnf' is ignored
mysqladmin: connect to server at '10.18.xx.xxx' failed
error: 'Can't connect to MySQL server on '10.18.xx.xxx' (13)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
I have verified below
1. user zbx_monitor has been created with permission GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';
2. I am able to login to zabbix database with user zbx_monitor
3. I have created file /var/lib/zabbix/.my.cnf file and privided username and password as below
[client]
user=zbx_monitor
password=<password>
4. copied file to /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf
5. My /etc/passwd file looks like this
zabbix:x:994:580:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
6. Assigned the template Template DB MySQL by Zabbix agent to database host
7. created Host Macro {$MYSQL.HOST} with DB IP
Can someone help me , how can I get this working
Comment