Ad Widget

Collapse

Received empty response from Zabbix Agent installed on Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dadokk3
    Junior Member
    • Mar 2020
    • 9

    #1

    Received empty response from Zabbix Agent installed on Zabbix Server

    Hello. I have Zabbix Server installed on a virtual machine, lets call it 192.168.10.10. I also installed a Zabbix Agent on that machine.

    In /etc/zabbix/zabbix_agentd.conf my Server parameter looks like this: Server = 127.0.0.1

    In Configuration -> Hosts I click Create host, and put in the right hostname, group: Virtual machines,Agent interface: 192.168.10.10, and then template: Template OS Linux by Zabbix agent

    After that I get error: Received empty response from Zabbix Agent at [192.168.10.10]. Assuming that agent dropped connection because of access permissions

    What could be the issue?

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    If your Zabbix server is trying to contact the Zabbix agent on the 192.168.10.10, then you cannot generally use "Server=127.0.0.1" in the zabbix_agentd.conf. When the zabbix agent accepts the incoming connection (via the accept() networking call), it can examine the source address (the address of the remote side of the connection). That remote address will not be 127.0.0.1, it will be the 192.168.10.10 that you have assigned to your system.

    If you want this one agent on the same system as your server to be monitored via the loopback address, then you must configure its agent interface in Zabbix using the 127.0.0.1 address.

    Comment

    • dadokk3
      Junior Member
      • Mar 2020
      • 9

      #3
      tim.mooney thanks for response, but I have still trouble. Maybe I didn't understand correctly?

      As you suggested I tried different variants of Server parameter in zabbix_agentd.conf and Agent interface in Zabbix frontend.

      Agent interface=127.0.0.1 Server=192.168.10.10
      ERROR: Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused

      I also tried 127.0.0.1 for Server parameter in zabbix_agentd.conf, but it returned the same error

      I forgot to mention I am using docker image zabbix-appliance to host zabbix server.

      Comment

      • korayak88
        Junior Member
        • Oct 2020
        • 19

        #4
        Hello,

        did you find the solution?

        Comment

        • korayak88
          Junior Member
          • Oct 2020
          • 19

          #5
          I have found the solution.
          Yes, i use the docker container zabbix, me too
          I installed zabbix-agent on operation system.

          #nano /etc/zabbix/zabbix-agent.conf

          You have to configure zabbix-agent
          Server= Zabbix Container IP
          ServerActive= Zabbix Container Ip
          Hostname= Operation System Hostname

          You can see Docker Container Which usage IP above command.

          # docker inspect Containername

          Comment

          • ExtreMoDuro772
            Junior Member
            • Jan 2022
            • 2

            #6
            Originally posted by korayak88
            I have found the solution.
            Yes, i use the docker container zabbix, me too
            I installed zabbix-agent on operation system.

            #nano /etc/zabbix/zabbix-agent.conf

            You have to configure zabbix-agent
            Server= Zabbix Container IP
            ServerActive= Zabbix Container Ip
            Hostname= Operation System Hostname

            You can see Docker Container Which usage IP above command.

            # docker inspect Containername
            Hello, have i same problem. Wich configuration u have in panel zabbix?

            Comment

            • iamjahid
              Junior Member
              • Dec 2022
              • 2

              #7
              I have same problem,

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

              My Configuration below,
              Zabbix Server IP: 192.168.200.17

              vi /etc/zabbix_agentd.conf
              Server=192.168.200.17
              ServerActive=192.168.200.17
              Hostname=cserver.example.com

              will any one told me the solution

              Comment

              Working...