gpt4 book ai didi

mysql - Zabbix MySQL默认模板监控错误

转载 作者:行者123 更新时间:2023-11-29 21:32:32 25 4
gpt4 key购买 nike

我使用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 用户也得不到结果。

最佳答案

Helpful image for output

添加行:host=localhost,然后重试

关于mysql - Zabbix MySQL默认模板监控错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35148538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com