【问题标题】:Zabbix Server Connection to Database failed (ERROR Z3001 [1045]Zabbix 服务器连接数据库失败(错误 Z3001 [1045]
【发布时间】:2020-10-15 07:36:44
【问题描述】:

我的 Zabbix 服务器出现问题。 他几天前还在跑步,然后仪表板出现了: Zabbix Server 正在运行 --> 值 NO 并且:Zabbix server is not running 显示的信息可能不是最新的 我过去没有更改一些配置。

然后我查看了 Zabbix Server 日志文件:/var/log/zabbix/zabbix_server.log 并出现错误:

 15909:20201011:000020.063 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
 15909:20201011:000020.063 database is down: reconnecting in 10 seconds

我已经检查了 Zabbix 配置文件:/etc/zabbix/zabbix_server.conf DBName、DBUser、DBPassword 都正确

谁能告诉我为什么错误显示“(使用密码:否)”? 一般是没有输入密码登录吧?

【问题讨论】:

  • 也许日志不是实际的最后信息 这里是命令的输出: systemctl status zabbix-server.service ● zabbix-server.service - Zabbix Server Loaded: loaded (/lib/systemd/ system/zabbix-server.service;已启用;供应商预设:已启用)活动:自 2020 年 10 月 15 日星期四 10:53:28 CEST 以来激活(自动重启)(结果:退出代码); 8 秒前 进程:1719 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS) 进程:1723 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/ FAILURE) 主 PID: 1721 (code=exited, status=0/SUCCESS)

标签: mysql linux debian zabbix mysql-error-1045


【解决方案1】:

问题已解决

解决方案:我在过去使用 HP Enterprise Switch 模板添加了 HP Switch。 当 SNMP Discover 完成时,有 2000 多个 Item。 所以这是一个 Stackoverflow :D

祝你有美好的一天!

【讨论】:

    猜你喜欢
    • 2017-12-16
    • 2022-11-25
    • 1970-01-01
    • 2015-04-16
    • 2017-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多