Ad Widget

Collapse

Get value from agent failed: ZBX_TCP_READ() failed [Connection reset by peer]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freelsd
    Member
    • Jul 2009
    • 46

    #1

    Get value from agent failed: ZBX_TCP_READ() failed [Connection reset by peer]

    Hi guys. i need help

    Zabbix_server: FreeBSD
    Zabbix_client: Debian
    Template: Linux
    No firewalls, no closed ports.
    -------------
    Zabbix_server:
    telnet *.*.228.50 10050
    Trying *.*.228.50...
    Connected to zabbix_client.
    Escape character is '^]'.
    Connection closed by foreign host.
    ---------------
    zabbix_client conf:
    Server=zabbix_server_ip

    # Server port for sending active checks

    ServerPort=10051

    # Unique hostname. Required for active checks.

    Hostname=RESOLVED_HOSTNAME_4_zabbix_server_ip

    StartAgents=5
    DebugLevel=3

    PidFile=/var/run/zabbix-agent/zabbix_agentd.pid

    LogFile=/var/log/zabbix-agent/zabbix_agentd.log

    Timeout=3
    Last edited by freelsd; 04-08-2009, 16:20.
  • freelsd
    Member
    • Jul 2009
    • 46

    #2
    logs
    7052:20090804:184727 Getting list of active checks failed. Will retry after 60 seconds
    7052:20090804:184830 Timeout while answering request
    7052:20090804:184830 Getting list of active checks failed. Will retry after 60 seconds
    7052:20090804:184933 Timeout while answering request
    7052:20090804:184933 Getting list of active checks failed. Will retry after 60 seconds
    7052:20090804:185036 Timeout while answering request
    7052:20090804:185036 Getting list of active checks failed. Will retry after 60 seconds
    7052:20090804:185139 Timeout while answering request
    7052:20090804:185139 Getting list of active checks failed. Will retry after 60 seconds

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      Is that log file from the client or the server? I'm guessing the client.

      See if you can telnet to the server port from the client. Nice work on testing the server to client connection, many people have posted without testing that first, thank you.

      My guess is that the client cannot connect to the server listed in the config file.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • freelsd
        Member
        • Jul 2009
        • 46

        #4
        Originally posted by nelsonab
        Is that log file from the client or the server? I'm guessing the client.

        See if you can telnet to the server port from the client. Nice work on testing the server to client connection, many people have posted without testing that first, thank you.

        My guess is that the client cannot connect to the server listed in the config file.
        Than for reply.
        1) You are right, this log from client
        2) server's logs are:
        32267:20090805:100510 Item [*.*.228.50:agent.ping] error: Get value from agent failed: *** Cannot connect to [*.*.228.50]:10050 [Connection refused]
        3)
        # iptables -F
        telnet zabbix_server_ip 10050
        Trying zabbix_server_ip...
        telnet: Unable to connect to remote host: Connection refused
        :~#

        4) Also - in this zabbix server i have monitored 7 switches by snmp - so ports are open.
        And how i cant connect 10050 hmmm.

        Comment

        Working...