Shubham Jain
Shubham Jain

Reputation: 199

Received empty response from Zabbix Agent at [XX.XXX.XX.XX]

I am trying to register zabbix agent to zabbix server but facing this error[Received empty response from Zabbix Agent at [XX.XXX.XX.XX]. Assuming that agent dropped connection because of access permissions.] in zabbix server UI.

I have elb top of Zabbix server and using elb dns name in zabbix agent conf file. Seems registration is happening but agent server is not active[Availability]enter image description here.

**conf file** 

    Server=elb end point
    ServerActive=elb end point

Any lead would be appreciated.

Upvotes: 0

Views: 28411

Answers (2)

Ryan Hsieh
Ryan Hsieh

Reputation: 11

My environment is using container zabbix server 5.4.12, container zabbix client 7.0.0 & redhat 8.6 virtual machine.

You have to configure zabbix-agent

vi /etc/zabbix/zabbix_agentd.conf

    Server= Zabbix Container IP
    
    ServerActive= Zabbix Container IP:10051

setting container zabbix agent ip on zabbix console

You can see the status available on zabbix console.

Upvotes: 1

Pavel Trzaskalik
Pavel Trzaskalik

Reputation: 217

This is error from agent alowed hosts. Often when you are using the Zabbix server in docker and agent from system on the same IP.

see log file at first

$ cat /var/log/zabbix/zabbix_agentd.log | grep connection

now compare incoming connection: connection from "SOME_IP" and allowed hosts: "SOME_IPs" example output : failed to accept an incoming connection: connection from "172.17.0.2" rejected, allowed hosts: "127.0.0.1"

This is your problem. connection from 172.17.0.2 (docker) is not allowed in your zabbix_agentd.conf. You will have to edit /etc/zabbix/zabbix_agentd.conf like this :

Server=::ffff:127.0.0.1,172.17.0.2 ServerActive=::ffff:127.0.0.1,172.17.0.2

Last step is restart agent

$ sudo systemctl restart zabbix-agent

Upvotes: 3

Related Questions