xxxZabbix Agent at [127.0.0.1]. Assuming that agent dropped connection because of access permissions

zabbix_server报错:

Received empty response from Zabbix Agent at [127.0.0.1]. Assuming that agent dropped connection because of access permissions

1.查看zabbix_agent日志报错:

在这里插入图片描述
错误分析:来自127.0.0.1的连接被拒绝,只允许主机:10.0.0.22

2 分析zabbix_agent.conf和zabbix_server.conf配置信息

在这里插入图片描述

分析配置信息:zabbix_agent.conf是通过10.0.0.22连接的zabbix_server,而不是127.0.0.1

3 解决方法

zabbix_agent配置修改
1、修改zabbix_agent.conf配置的server,修改为:10.0.0.22
2、在zabbix_server的web页面,将ip从127.0.0.1改为:192.168.1.110

报错信息:DB type “MYSQL” is not supported by current setup. Possible values postgresql.

报错原因:由于zabbix默认PHP文件使用Mysql数据库,需要修改为postgresql

find / -type f -name zabbix.conf.php

vim /usr/local/apache/htdocs/zabbix/conf/zabbix.conf.php
type 【‘’postgresql】
post 【“5432”】

猜你喜欢

转载自blog.csdn.net/weixin_45320660/article/details/110110850