我使用zabbix默认MySQL模板进行监控。我收到了那些错误
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
7328:20160202:150028.508 In zbx_waitpid()
7328:20160202:150028.508 zbx_waitpid() exited, status:1
7328:20160202:150028.508 End of zbx_waitpid():7337
7328:20160202:150028.508 Run remote command [HOME=/var/lib/zabbix mysqladmin ping | grep -c alive] Result [1] [0]...
7328:20160202:150028.508 Sending back [0]
我可以通过命令行访问mysql并已在 / var / lib / zabbix 中设置.my.cnf
[client]
user=zabbix
password=zabbix
[mysqladmin]
user=zabbix
password=zabbix
即使没有root用户也无法获得结果。