Ad Widget

Collapse

Zabbix Agent Connection refused

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Zabbix Agent Connection refused

    Hi there,

    I recently installed zabbix on my servers.
    Zabbix Sever: Ubuntu 18.04
    Zabbix Agent remote server: Amazon Linux AMI

    I set up zabbix server and the agent according to the documentation provided.

    My zabbix_agentd.conf on the remote server:
    HTML Code:
    LogFile=/tmp/zabbix_agentd.log
    Server=x.x.xxx.36 (zabbix server ip)
    ServerActive=x.x.xxx.36
    Hostname=Labs
    My zabbix_agentd.conf on the zabbix server:
    HTML Code:
    LogFile=/tmp/zabbix_agentd.log
    Server=127.0.0.1,x.x.xxx.26 (remote server ip)
    ServerActive=127.0.0.1,x.x.xxx.26
    Hostname=Labs
    On the web interface under the remote server host availability, I get the error:
    Received empty response from Zabbix Agent at [x.x.xx.26]. Assuming that agent dropped connection because of access permissions.
    In the zabbix server logs, Im getting the error:
    active check configuration update from [x.x.xx.26:10051] started to fail (cannot connect to [[x.x.xx.26]:10051]: [111] Connection refused)
    I find this weird because on the web interface, I specified port 10050, but the logs show that I cannot connect on port 10051.

    When I run telnet from the zabbix server to the remote server on port 10050 it succeeds. But when I run it on port 10051 it says Connection refused.

    Please help!

    Much thanks,
    Elias
    Last edited by limelias; 07-03-2019, 13:02.

    #2
    Zabbix agent does not listen port 10051, Zabbix server does. Also, there is no need to add remote server's IP addresses to agent configuration of your server. You configure monitored hosts (remote servers) on Zabbix web UI.
    Try telnet from .26 to .36 port 10051.
    Last edited by Olli; 08-03-2019, 06:36.

    Comment


      #3
      Thanks for the reply. will remove the IP address on the server's agent.conf.

      I ran telnet x.x.xxx.36 10051

      and got
      Trying x.x.xxx.36...
      Connected to x.x.xxx.36.

      Comment

      Announcement

      Collapse
      No announcement yet.
      Working...
      X