Ad Widget

Collapse

Connection established but no return value from agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michelis
    Junior Member
    • Jan 2012
    • 14

    #1

    Connection established but no return value from agent

    Hi everybody,

    I have the following problem with zabbix: I installed on a CentOS 5 machine a zabbix-agent in version 1.8.10 by compiling it. I compiled it using
    Code:
    ./configure --enable-agent; make; make check; sudo make install
    everything worked fine. I copied a working zabbix_agentd.conf to the server and adapted it for the machine. The zabbix_agent is running and listening on the default port. I can connect to the machine using
    Code:
    telnet xxx.xxx.xxx.xxx 10050
    netstat -a is showing me that the connection is established when I do the telneting. The problem is I don't get a return value. In zabbix_agentd.log (on the client side) I get the following error:
    Code:
     Process listener error: ZBX_TCP_WRITE() failed: [104] Connection reset by peer.
    And on the server side
    Code:
    Get value error: ZBX_TCP_READ() failed: [104] Connection reset by peer
    When I do a
    Code:
    zabbix_get -s localhost -k "agent.version"
    on the client I get a valid return value so the client is working correctly. (I added 'localhost' as server for this). Does anybody know the reason for this and maybe a solution.

    Cheers
    Tobias
  • katemcd
    Junior Member
    • Jan 2012
    • 4

    #2
    I am not sure I understand the problem. When you telnet to the agent port it should connect successfully, but you shouldn't get a return of anything. Doing the zabbix_get is where you get your return values, and that seems to be working for you.

    What are you expecting to see when you telnet to the zabbix port?

    Comment

    • michelis
      Junior Member
      • Jan 2012
      • 14

      #3
      Hi,

      the problem is, I tried it with zabbix_get and I don't get anything back, when I connect from the server (only when I connect from the client itself) so I tried for debugging purposes
      Code:
      telnet 192.168.178.234 10051
      The connection can be established and when I type
      Code:
      agent.version
      the connection is closed with an error [104] TCP_READ_FAILED().
      As I understood, simulates the above telnet command the following command
      Code:
      zabbix_get -s 192.168.178.234 -k "agent.version"
      (which fails). Or did I get something wrong. What I wanted to say is, that the zabbix agent is working locally on the client and is returning the correct information I asked for but it isn't giving any information back when I connect from the zabbix server. And when I type agent.version I expect to get back
      Code:
      ZBXD1.8.10
      as from the other clients.

      Tobias

      Comment

      • trikke
        Senior Member
        • Aug 2007
        • 140

        #4
        Hi,

        Is your Zabbix Server-Adress/Name correctly set in your zabbix_agentd.conf File?


        ### Option: Server
        # List of comma delimited IP addresses (or hostnames) of Zabbix servers.
        # No spaces allowed. First entry is used for receiving list of and sending active checks.
        # Note that hostnames must resolve hostname->IP address and IP address->hostname.
        # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
        #
        # Mandatory: yes
        # Default:
        # Server=

        Server=


        Only Servers in this list will be allowed to "get" data from the Agent!

        Greets
        Patrick

        Comment

        • michelis
          Junior Member
          • Jan 2012
          • 14

          #5
          Hello,

          yes, I set it up correctly.
          Code:
          Server=zabbix,localhost
          The name is resolved. I tried it with the IP and the DNS-name and both
          didn't work. And I think zabbix is refusing the connection when the
          server isn't set properly, isn't it?

          Greets
          Tobias

          Comment

          • anitakrueger
            Junior Member
            • Sep 2012
            • 4

            #6
            Hi Tobias,
            Did you find a solution for this? I am having the exact same problem and was looking at the firewall first, but couldn't see any dropped packets or anything.

            I am running the Zabbix server and client on RedHat 6.

            Thanks
            - Anita

            Comment

            • alledm
              Member
              • May 2012
              • 84

              #7
              Hi,
              what do you get on the zabbix server when you do
              Code:
               host ip_of_the_server
              The reason why I am asking is that I have the feeling that in the Server option you might need the fully qualified name of the server rather than just "zabbix"

              Comment

              • anitakrueger
                Junior Member
                • Sep 2012
                • 4

                #8
                Found the solution and it is rather embarrassing. It was our firewall. It allows telnets but no real connections and hence was dropping the packets Once the hole was punchend, everything worked like a charm and I got my discovery and active checks working.

                Comment

                • renanmvc
                  Junior Member
                  • Feb 2014
                  • 12

                  #9
                  Não consigo fazer uma comunicação entre zabbix servidor e zabbix proxy.

                  Estou tentando fazer uma conexão entre o meu servidor zabbix e o zabbix proxy que estão na mesma rede e em servidores diferentes, instalados em Debian 6.0.
                  No log do servidor zabbix ele mostra o seguinte:

                  21214:20140221:160039.622 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160040.632 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160041.636 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160042.640 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160043.644 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160044.648 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160045.651 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160046.655 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160047.658 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160048.661 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160049.665 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160050.668 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160051.672 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160052.676 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160053.679 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160054.684 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160055.688 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160056.692 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160057.695 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160058.700 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160059.703 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160100.707 invalid host availability data: Can't find pair with name "data"
                  21214:20140221:160101.711 invalid host availability data: Can't find pair with name "data"

                  Quem puder me ajudar.
                  Desde Já agradeço!

                  Comment

                  Working...