Ad Widget

Collapse

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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kamalakar K
    Junior Member
    • Mar 2016
    • 10

    #1

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

    Hello Everyone,

    Greetings

    I am new to Zabbix and experiencing below issue, i have added windows server to Zabbix and agent was installed. When i add an item to my Zabbix server i am seeing below error. Could any one please assist me or pointing me to the right direction.

    Error: Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer[/B]

    I am following below thread, but got confused with Client configuration terminology. Where do i need to add the IP address, is it on my Zabbix Server agent configuration file or windows Server Agent configuration file?

    Can any one help me on this please.

    Thread i am following: https://www.zabbix.com/forum/showthread.php?t=9816
  • nmz
    Member
    • Jan 2016
    • 69

    #2
    Originally posted by Kamalakar K
    Where do i need to add the IP address, is it on my Zabbix Server agent configuration file or windows Server Agent configuration file?
    You need to add Server IP in your Agent config file. What is your zabbix server environment? Linux or window? If linux, does you setup iptables in your server?

    Comment

    • Kamalakar K
      Junior Member
      • Mar 2016
      • 10

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

      Hello,

      Greetings!

      Thank you for your response, much appreciated. Let me explain you my scenario bit more. I have Zabbix server (Ubuntu 14.4 TL)hosted in cloud platform (Azure) and I am trying to monitor the 3 Windows VMs from another cloud platform( AWS).

      I have installed Zabbix agents on 3 Windows Server VMs(AWS) and added to my zabbix server (which is on Azure). Out of these 3 Windows VMs one VM is giving error " Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer". Other two VMs are giving required data without any errors.
      I have already added my Zabbix Server IP address in all 3 windows servers, even I rechecked the configuration. But no luck any advise would really much appreciated.

      Once again thanks for your response.

      Comment

      • nmz
        Member
        • Jan 2016
        • 69

        #4
        Try with telnet "telnet <IP> 10050" and just quickly paste "version[zabbix_agent]". Otherwise if we see log will be more helpful

        Comment

        • Kamalakar K
          Junior Member
          • Mar 2016
          • 10

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

          Hi thank you for your quick response. I am getting below error not able to type the agent. version.
          Trying (Ip address of my VM)...
          Connected to (Ip address of my VM).
          Escape character is '^]'.
          Connection closed by foreign host.

          Comment

          • nmz
            Member
            • Jan 2016
            • 69

            #6
            Could you show us your zabbix server and agent log.
            Last edited by nmz; 05-04-2016, 11:31.

            Comment

            • Kamalakar K
              Junior Member
              • Mar 2016
              • 10

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

              Hello,

              issue is resolved after changing the zabbix_agentd.conf file. That file was not updated correctly.

              Thank you for your assistance.

              Regards,
              Kamalakar K

              Comment

              • nmz
                Member
                • Jan 2016
                • 69

                #8
                Originally posted by Kamalakar K
                Hello,

                issue is resolved after changing the zabbix_agentd.conf file. That file was not updated correctly.

                Thank you for your assistance.

                Regards,
                Kamalakar K
                My Pleasure

                Comment

                • ZabbixMMA
                  Junior Member
                  • Jul 2016
                  • 1

                  #9
                  Same Issue

                  Originally posted by Kamalakar K
                  Hello,

                  issue is resolved after changing the zabbix_agentd.conf file. That file was not updated correctly.

                  Thank you for your assistance.

                  Regards,
                  Kamalakar K
                  Just a bump/thanks as I ran into this same issue. The agent was residing on a Windows server but had an older conf file with incorrect parameters. Even better, there were two conf files - one in the root of the zabbix agent directory and one in a subfolder named conf. I had to delete the sub folder and update the conf in the root directory.

                  Comment

                  • Mukesh1k
                    Junior Member
                    • Dec 2014
                    • 4

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

                    Hello Team,

                    I am facing the issue as mentioned in the title. let me explain first my infra environment. I am using Zabbix server and Zabbix agent 3.2 and server and client are different locations via IP sec connectivity.I am facing the issue on windows agent. the agent gets the latest data of event logs and icmp but in Zabbix dashboard still shown red and shown (Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer). I have tested both side port and ICMP all opened and communicated
                    do you have anybody know to solve this issue

                    Regards
                    Mukesh

                    Comment

                    • SBO
                      Zabbix Certified Specialist
                      Zabbix Certified Specialist
                      • Sep 2015
                      • 226

                      #11
                      On your server, did you try to telnet your zabbix agent, to ensure the communication is working well ?
                      And did the same on your agent server (telnet to server) ?

                      Comment

                      • Mukesh1k
                        Junior Member
                        • Dec 2014
                        • 4

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

                        Thank you SBO for the reply.
                        yes, i have tested agent and server, communication no problem .i have test via telnet (telnet x.x.x.x 10050) from Zabbix server to agent and agent to Zabbix Server its working fine. i am getting event log and ICMP latest data but other latest data not getting like process, services and shown dashboards red (ZBX) error (Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer )

                        Comment

                        • Mukesh1k
                          Junior Member
                          • Dec 2014
                          • 4

                          #13
                          Undefined index

                          Hello Zabbix Team,

                          I'm using version 2.2.4 of ZBX Server an getting those errors only in "Triggers" for only one Group and another groups all ok.

                          Error :-
                          Undefined index: eventid [ in/usr/share/zabbix/tr_status.php:726]
                          Undefined index: objectid [in/usr/share/zabbix/tr_status.php:727]

                          Any suggestion guys for resolved this isses.

                          Thank You

                          Comment

                          • jamyca17
                            Junior Member
                            • Aug 2017
                            • 5

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

                            Hi,

                            I got this alert on 8 web servers in the same segment (x.x.x.21-29) all at the same time yesterday: Zabbix agent on <servername> is unreachable for 5 minutes

                            In the Hosts configuration, ZBX availability is red with error: Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer

                            There were no change in Zabbix, VM or network side that I know of. Ping and telnet results are okay between Zabbix and the servers. Zabbix agent is running. I tried to restart the agent, delete/add the host. I checked the config file. All are okay. Their apps/db counterparts did not encounter the error.

                            Any suggestions on what I can do next? Thank you in advance!

                            Comment

                            • andris
                              Zabbix developer
                              • Feb 2012
                              • 228

                              #15
                              Originally posted by jamyca17
                              In the Hosts configuration, ZBX availability is red with error: Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer
                              So, Zabbix server or proxy successfully opens a TCP connection to agent to do a passive check (to get an item value).
                              One possible reason - Zabbix agent closes connection because it comes from a host or IP address, not matching "Server=" parameter in zabbix_agentd.conf file.
                              Another reason - if encryption is used - could be problems with TLS.
                              Yet another reason - some network device (firewall?) between server and agent is disrupting communication.

                              Comment

                              Working...