在自己的虚拟机上搭建了一个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 chkconfigLoaded: loaded (/etc/rc.d/init.d/zabbix_server; bad; vendor preset: disabled)Active: active (exited) since 四 2018-12-06 09:01:56 CST; 11min agoDocs: 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 seconds35124: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 seconds35124: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 seconds35124: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 seconds37926:20181206:093143.154 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)37926:20181206:093143.154 database is down: reconnecting in 10 seconds

解决办法
使用root用户登录
mysql -uroot -p

mysql> grant all on zabbix.* to 'zabbix'@'localhost' identified by '123456' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

完后,刷新浏览器,解决了此问题,经验总结,有问题的时候,监控zabbix的日志,会有想不到的收获。

zabbix server is not running,the information displayed may not be current相关推荐

  1. Ubuntu 16.04中zabbix显示 :Zabbix server is not running:te information displayed may not be current.

    报错 :Zabbix server is not running:te information displayed may not be current. 查看Zabbix server日志cat / ...

  2. “zabbix server is not running: the information displayed may not be current”的一种可能原因

    不知从什么时候开始,之前搭建的zabbix系统前端页面开始显示"zabbix server is not running: the information displayed may not ...

  3. Zabbix server is not running:the information displayed may not be current

    摘要 查看zabbix的web的配置文件配置信息 root@ubuntu:~# find / -name zabbix.conf.php /etc/zabbix/web/zabbix.conf.php ...

  4. zabbix server is not running the information displayed may not be current

    页面报错如下 查看日志提示 30037:20190710:193016.878 cannot start alert manager service: Cannot bind socket to &q ...

  5. zabbix提示错误:zabbix server is not running: the information displayed may not be current

    可能是如下几种原因之一: 一.selinux是否关闭. 一定要关闭这个,开启selinux会引起一连串问题,甚至zabbix的discovery功能也不能正常使用. 关闭SELinux的方法: 修改/ ...

  6. Zabbix server is not running: the information displayed may not be current.

    如图: 查看zabbix_server的进程: [root@localhost ~]# ps aux | grep zabbix zabbix 7907 0.0 0.3 261556 3728 ? S ...

  7. Zabbix server is not running 报错的排查

    前几天部署了一台zabbix 版本是2.2.2的,部署方法是按照百度经验的步骤部署的.我为那个步骤增加了一些说明,然后发在了自己的博客上.部署完了之后一直没时间增加监控的主机.今天登陆zabbix的时 ...

  8. Zabbix server is not running

    问题描述 Dashbord中提示Zabbix server is not running 分析过程 首先查看zabbix-server的运行状态 systemctl status zabbix-ser ...

  9. zabbix4.0添加mysql报警_Zabbix4.0系统告警“Zabbix server is not running”

    第一步: 查看系统日志,进一步确认原因 1 cat /var/log/zabbix/zabbix_server.log 问题出现在数据库. 第二步 数据库确认 1 mysql -u root -p # ...

最新文章

  1. boundingRect函数
  2. python教程:使用生成器重构提取数据方法来优化爬虫代码
  3. Java栈 Stack
  4. 三极管基本参数介绍与放大电路分析
  5. 【图像处理】——图像特效处理(马赛克、图像融合、毛玻璃等)
  6. SpringCloud Netflix Ribbon
  7. json里面的list数据取不出来_[工具]用kaggle API下载数据集
  8. 聊聊有哪些参与项目的好途径吧
  9. python 后10个元素_10 行 Python 代码写 1 个 USB 病毒
  10. SAP License:更改物料基本计量单位
  11. iview兼容ie8_iview在ie9及以上的兼容问题解决方案__Vue.js__JavaScript__前端__iView
  12. EasyUI TextBox的onkeypress事件
  13. 为什么“隐性知识”比“刻意练习”更重要?
  14. httpclient4.X 设置代理请求(包含账号密码)
  15. 壮阔与波澜:互联网十年创业记
  16. if的用法及常见问题
  17. 湿敏电阻CM-R / HR202应用 原理图 IO输出交流 AD采样
  18. 计算机中插入背景图片怎样操作,word插入背景图片_Word 2007中插入图片的背景设置妙招_word中插入背景图片_word插入图片做背景...
  19. 生肖android编程,android小程序,根据生日年份计算出生肖
  20. 面试必备:Zack 大佬带您深入Spring MVC DispatchServlet 源码分析

热门文章

  1. arthas 运维工具介绍与原理分析
  2. JMeter断言失败
  3. Vlog基础教程+系统教程
  4. pytorch自学笔记
  5. 2021年中国装载机行业发展现状分析,行业集中度不断提升「图」
  6. 3000元投影仪对比评测,当贝D3X完胜极米NEW Z6 X
  7. 【Bluetooth】
  8. OBIEE分析开发-使用Echarts展现地图1
  9. WLAN和E-UTRAN小区重选
  10. 二十二、D触发器、T触发器、JK触发器设计总结