zabbix server is not running,the information displayed may not be current_abbix server not running

img
img

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

在自己的虚拟机上搭建了一个zabbix平台,安装好了相关的php,mysql,apache,zabbix,并使用默认账号admin密码zabbix登录,登录成功之后发现底部出现abbix server is not running,the information displayed may not be current

在这里插入图片描述

通过查找zabbix_server服务是不是启动的,发现自己也启动了呀

[root@localhost conf]# service zabbix_server status
● zabbix_server.service - SYSV: Starts and stops Zabbix Server using chkconfig
   Loaded: loaded (/etc/rc.d/init.d/zabbix_server; bad; vendor preset: disabled)
   Active: active (exited) since 四 2018-12-06 09:01:56 CST; 11min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 37063 ExecStart=/etc/rc.d/init.d/zabbix_server start (code=exited, status=0/SUCCESS)

12月 06 09:01:56 localhost.localdomain systemd[1]: Starting SYSV: Starts and stops Zabbix Server using c......
12月 06 09:01:56 localhost.localdomain zabbix_server[37063]: /etc/rc.d/init.d/zabbix_server : zabbix_serv...ng
12月 06 09:01:56 localhost.localdomain systemd[1]: Started SYSV: Starts and stops Zabbix Server using ch...ig.
Hint: Some lines were ellipsized, use -l to show in full.


刚开始感觉有些奇怪,灵感一动,看看zabbix_server的日志,日志的位置可以从配置文件中查看,默认是LogFile=/tmp/zabbix_server.log

[root@localhost conf]# vi /usr/local/etc/zabbix_server.conf

打开/tmp/zabbix_server.log一看,问题出现了。
一堆类似下面的错误

35124:20181206:091731.737 database is down: reconnecting in 10 seconds
 35124:20181206:091741.738 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 35124:20181206:091741.738 database is down: reconnecting in 10 seconds
 35124:20181206:091751.739 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 35124:20181206:091751.739 database is down: reconnecting in 10 seconds
 35124:20181206:091801.740 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 35124:20181206:091801.741 database is down: reconnecting in 10 seconds


连接不上mysql数据库所致
DBHost=127.0.0.1
DBName=zabbix
DBUser=zabbix
DBPassword=123456
DBPort=3306

保存重启之后,发现日志又变掉了,变成如下的了

37926:20181206:093133.152 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
 37926:20181206:093133.152 database is down: reconnecting in 10 seconds
 37926:20181206:093143.154 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)


![img](https://img-blog.csdnimg.cn/img_convert/5d4e28f2fa44da764adf60febc64ae78.png)
![img](https://img-blog.csdnimg.cn/img_convert/faae56156ee359cc0bd6fb23366db50c.png)
![img](https://img-blog.csdnimg.cn/img_convert/a29205b0737673551c0b8cd3f6be771a.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)**

大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)**

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值