Ad Widget

Collapse

Get value from agent failed. Error: ZBX_TCP_READ() failed [Interrupted system call]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yas
    Junior Member
    • Apr 2010
    • 25

    #16
    Get value from agent failed: Cannot connect to [xxxxxxxx:10050] [Interrupted syste

    Originally posted by anrstone
    Have you tried telnetting from the Zabbix server to the agent on the IP you've set-up?

    Secondly have you checked that it's listening on the IP the server is trying to connect to?

    Is the hostname in the agent config the same as that on the Zabbix Server - it needs to be exactly the same?

    I'm sure you've done all this already so sorry if I'm not being helpful - do you want to post up some more details?
    this is lines on my zabbix log file

    1575:20100506:172933.505 server #1 started [DB Cache]
    1388:20100506:172933.506 server #0 started [Watchdog]
    1581:20100506:172933.509 server #7 started [Trapper]
    1587:20100506:172933.509 server #13 started [Alerter]
    1589:20100506:172933.509 server #15 started [Timer]
    1591:20100506:172933.509 server #17 started [HTTP Poller]
    1593:20100506:172933.510 server #19 started [DB Syncer]
    1594:20100506:172933.510 server #20 started [Escalator]
    1585:20100506:172933.510 server #11 started [Trapper]
    1586:20100506:172933.510 server #12 started [ICMP pinger]
    1588:20100506:172933.510 server #14 started [Housekeeper]
    1588:20100506:172933.510 Executing housekeeper
    1584:20100506:172933.510 server #10 started [Trapper]
    1583:20100506:172933.516 server #9 started [Trapper]
    1582:20100506:172933.524 server #8 started [Trapper]
    1577:20100506:172933.582 server #3 started [Poller. SNMP:YES]
    1590:20100506:172933.583 server #16 started [Poller for unreachable hosts. SNMP:YES]
    1592:20100506:172933.585 server #18 started [Discoverer. SNMP:YES]
    1579:20100506:172933.591 server #5 started [Poller. SNMP:YES]
    1578:20100506:172933.595 server #4 started [Poller. SNMP:YES]
    1580:20100506:172933.596 server #6 started [Poller. SNMP:YES]
    1576:20100506:172933.598 server #2 started [Poller. SNMP:YES]
    1591:20100506:172934.963 Error doing curl_easy_perform [Couldn't connect to server]
    1590:20100506:172938.585 Item [Zabbix Server:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x:10050] [Connection refused]
    1588:20100506:172942.075 Deleted 0 records from history and trends
    1590:20100506:172946.354 Item [Test:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x:10050] [Interrupted system call]
    1592:20100506:173034.032 /usr/sbin/fping: [2] No such file or directory
    1590:20100506:173038.387 Item [Zabbix Server:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x10050] [Connection refused]
    1590:20100506:173051.412 Item [Test:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x:10050] [Interrupted system call]
    1592:20100506:173110.186 /usr/sbin/fping: [2] No such file or directory
    1590:20100506:173138.453 Item [Zabbix Server:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x:10050] [Connection refused]
    1592:20100506:173143.274 /usr/sbin/fping: [2] No such file or directory
    1590:20100506:173156.474 Item [Test:agent.ping] error: Get value from agent failed: Cannot connect to [xx.xx.xx.x:10050] [Interrupted system call]
    1592:20100506:173216.369 /usr/sbin/fping: [2] No such file or directory
    1590:20100506:173238.529 Item [Zabbix Server:agent.ping] error: Get value from agent failed: Cannot connect to xx.xx.xx.x:10050] [Connection refused]

    Comment

    • anrstone
      Member
      • Oct 2009
      • 61

      #17
      Well it looks like you haven't got fping installed which is a pre-requisite I seem to recall for Zabbix. This may be the reason why it can't ping but have you tried running telnet to connet to the host e.g.

      telnet <hostip> 10050

      It should connect OK - though as soon as you type and hit return it will probably drop the connection - which is fine. In terms of the curl easy perform error I suggest you try running curl from the command line and see if it can give you any more information.
      Last edited by anrstone; 06-05-2010, 17:45.

      Comment

      • yas
        Junior Member
        • Apr 2010
        • 25

        #18
        Originally posted by anrstone
        Well it looks like you haven't got fping installed which is a pre-requisite I seem to recall for Zabbix. This may be the reason why it can't ping but have you tried running telnet to connet to the host e.g.

        telnet <hostip> 10050

        It should connect OK - though as soon as you type and hit return it will probably drop the connection - which is fine. In terms of the curl easy perform error I suggest you try running curl from the command line and see if it can give you any more information.

        telnet: Unable to connect to remote host: Connection timed out

        Comment

        • anrstone
          Member
          • Oct 2009
          • 61

          #19
          I would focus on that if I were you - look at the agent and make sure it is listening on the right port and the IP address you expect. Make sure you haven't got any firewall - physical of SW in the way etc. Zabbix looks like it's working fine from what you've said.

          If telnet can't connect then there's little chance Zabbix will...

          Comment

          • yas
            Junior Member
            • Apr 2010
            • 25

            #20
            Originally posted by anrstone
            I would focus on that if I were you - look at the agent and make sure it is listening on the right port and the IP address you expect. Make sure you haven't got any firewall - physical of SW in the way etc. Zabbix looks like it's working fine from what you've said.

            If telnet can't connect then there's little chance Zabbix will...
            sorry my friend i am beginner on zabbix please help me if you can i am waiting for your help, you can contact me by Email :[email protected]

            Comment

            • anrstone
              Member
              • Oct 2009
              • 61

              #21
              OK - I'm no expert on Zabbix either but - Zabbix agents listen on port 10050 (by default) for in-comming connections from the Zabbix server. Zabbix agents also make outbound connections back to the server which is usually listening on port 10051.

              Ignore the inbound connection to the server to start with and focus on getting the connection from the server to the agent working. When you ran telnet from your server to the host you effectively proved that the server could not talk to the agent this can be for a number of reasons:

              - The agent is on a host that is sitting behind a firewall
              - The agent isn't configured correctly
              - The agent is not listening on the right port
              - The agent isn't running on the host
              - the agent didn't install properly on the host
              - etc.

              I can't really help you with this as you'll need to look at the host you've added and then see what's going on. If the new host is a linux box then use the usual ps / netstat etc to see what's going on if windows use the service manager and netstat etc - also if windows check if win firewall is running and on linux if iptables or similar is configured.

              Let us know what you find
              Last edited by anrstone; 07-05-2010, 12:06.

              Comment

              • mpasha06
                Junior Member
                • Jan 2014
                • 15

                #22
                Getting same error

                Hi,

                I am getting below messages in log file,

                active check configuration update from [x.x.x.x:10051] started to fail (ZBX_TCP_READ() failed: [4] Interrupted system call)

                But zabbix is working fine, agent is running fine, sending data to the server, server able to receive data and showing properly.

                I didn't understand why still getting above error in log file.

                Comment

                • stevensedory
                  Junior Member
                  • Jan 2017
                  • 9

                  #23
                  Hey so for me, after many an hour, this is what fixed it.

                  Active Agent Checks were failing with following error or similar:
                  active check configuration update from [zabbix.verticalcomputers.com:10051] started to fail (ZBX_TCP_READ() timed out)
                  For whatever reason, active agents wont be able to connect properly (active checks won't work, only passive), if server is behind a firewall NAT'd, and you don't have the following in your ifcfg-eth0 (or whatever NIC) file. It will work if you bypass the firewall and put a public IP right on the zabbix server.
                  NM_CONTROLLED=no
                  BOOTPROTO=static

                  If you use the CentOS 7 wizard, or nmtui to config your NIC, instead of manually, those lines don't get added.
                  I noticed this because when running "ip add", I'd get the following:

                  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                  link/ether 00:15:5d:07:82:07 brd ff:ff:ff:ff:ff:ff
                  inet 10.32.2.25/24 brd 10.32.2.255 scope global noprefixroute eth0
                  valid_lft forever preferred_lft forever

                  Notice the "noprefixroute". That was unsettling, so I dug for a long time online, with no leads. After adding the two lines to the NIC config mentioned above, and restarting the network, now looks like this:
                  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                  link/ether 00:15:5d:07:82:07 brd ff:ff:ff:ff:ff:ff
                  inet 10.32.2.25/24 brd 10.32.2.255 scope global eth0
                  valid_lft forever preferred_lft forever

                  Comment

                  • ronit_g93
                    Junior Member
                    • Jul 2018
                    • 3

                    #24
                    It seems the issue is related to Zabbix_agentd.conf file.
                    Please check which proxy or server it is using to get connected. Mention the same ip in Server and ServerActive column of the agent conf file.
                    Also make sure the ports 10050 and 10051 are open and no firewall rules are running. Once done save and restart the agent service.

                    Please give it a try.

                    Comment

                    • Eps1l
                      Junior Member
                      • Aug 2020
                      • 1

                      #25
                      I had this issue.
                      1) zabbix_agentd worked perfectly
                      2) zabbix_get from zabbix server successfully had return any keys values.
                      3) no errors anywhere in logs
                      4) reinstall agent didn't help

                      I increased in zabbix_server.conf:
                      Timeout=4 to Timeout=10 /// Specifies hoaw long we wait for agent, SNMP device or external check (in seconds)

                      And host became available.

                      Comment

                      Working...