Skip to content

Latest commit

 

History

History
33 lines (33 loc) · 2.4 KB

Zabbix4.0中遇到的问题.md

File metadata and controls

33 lines (33 loc) · 2.4 KB

@[toc]

1. Please create database manually, and set the configuration parameters for connection to this database. Press "Next step" button when done.

问题来源:连接mariadb的时候总是连接不上 解决方法:创建zabbix数据库的时候应该这样创建:create database zabbix character set utf8 collate utf8_bin;

2. Get value from agent failed: cannot connect to [[10.0.0.3]:10050]: [113] No route to host

问题来源:zabbix server连接监控主机时提示以上 解决方法:关闭监控主机的防火墙,systemctl stop firewalld,永久关闭使用 systemctl disable firewalld

3. cannot start alert manager service: Cannot bind socket to "/tmp/zabbix_server_alerter.sock": [13] Permission denied.

问题来源:Zabbix从低版本升级到高版本后重启Zabbix Server失败,日志报这个错误 解决方法:关闭SELINUX防火墙就可了,将SELINUX的值设置为disable,具体操作如下:

[root@localhost ~]# vim /etc/selinux/config
[root@localhost ~]# grep -Ev '^$|#' /etc/selinux/config 
SELINUX=disable
SELINUXTYPE=targeted

配置完成后要重启系统!!!

4. cannot start preprocessing service: Cannot bind socket to "/tmp/zabbix_server_preprocessing.sock": [13] Permission denied

问题来源:同上 解决方法:同上

5.active check configuration update from [x.x.x.x:10051] started to fail (ZBX_TCP_READ() timed out)

问题来源:Zabbix Proxy下的客户端(Zabbix Agent)日志报错 解决方法:实际上这是不影响监控系统的使用,只需要在配置文件 /etc/zabbix/zabbix_agentd.conf 中把 ServerActive=xxxx 给注释了,不用配置。

6. failed to accept an incoming connection: connection from "x.x.x.x" rejected, allowed hosts: "x.x.x.x"

问题来源:使用Zabbix Proxy作代理监控Zabbix Agent时,客户端(Zabbix Agent)报错 解决方法:在Web页面上添加代理下的监控主机时,这些监控主机中Zabbix Agent的配置文件中 Hostname的值一定要于这里的“主机名称”的值完全相同

[root@proxy-agent ~]# grep -Ev "^$|#" /etc/zabbix/zabbix_agentd.conf 
...
Hostname=Zabbix agent
...

在这里插入图片描述