Ad Widget

Collapse

cannot connect to [[x.x.x.x]:10050]: [4] Interrupted system call

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ivheror
    Junior Member
    • Sep 2018
    • 6

    #1

    cannot connect to [[x.x.x.x]:10050]: [4] Interrupted system call

    Hi, first of all sorry if post is not in correct topic.

    Im pretty n00b in Zabbix and im trying to familiarize with it. I have monitored some hosts in my own network but i now i have to monitorize VPN hosts and one in particular wich i cant comunicate with, so i get the next error :
    Get value from agent failed: cannot connect to [[x.x.x.x]:10050]: [4] Interrupted system call

    the log of server always show this error: Cannot send list of active checks to [host-i-want-to-monitorize] not found

    im getting crazy looking for the answer of this theorema, but i dont have enough experience to get LVL 2 and be better in Zabbix so, someone wants to help me with this little headache problem?
    Last edited by ivheror; 11-09-2018, 10:21.
  • JoeyHan
    Junior Member
    • Sep 2018
    • 2

    #2
    check firewall rules,

    Comment

    • ivheror
      Junior Member
      • Sep 2018
      • 6

      #3
      useless answer

      Comment

      • vlam
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 166

        #4
        For this
        Get value from agent failed: cannot connect to [[x.x.x.x]:10050]: [4] Interrupted system call

        It means it cannot talk to your server you are trying to monitor, this can be due to SELINUX, APPARMOR or the Local firewall not allowing your connection to get through. By default when you install an agent it does not create and open the firewall rules or open the SELINUX and things on a system. Easiest way to test is see if you can telnet from your Zabbix server/proxy to that hosts on port 10050

        For this error
        Cannot send list of active checks to [host-i-want-to-monitorize] not found

        In your agent config there is an Line for ActiveServer=x.x.x.x
        In there you need to specify the Zabbix Server/Proxy that is monitoring the server and it needs to be able to resolve the name of the server as configured in the Zabbix frontend config for your host as that is the name it will try to do the active check on.

        Hope this puts you closer to what you are struggling with...
        4 Zabbix Frontend Servers (Load balanced)
        2 Zabbix App Servers (HA)
        2 Zabbix Database Servers (HA)
        18 Zabbix Proxy Servers (HA)
        3897 Deployed Zabbix Agents
        6161 Values per second
        X-Layer Integration
        Jaspersoft report Servers (HA)

        Comment

        • Russel951
          Junior Member
          • Sep 2018
          • 1

          #5
          I am getting similar kind of problem, did you get any solution?

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            Hi [email protected],
            I don't know what kind of environment or configuration you are using. It is necessary to set the firewall according to the network configuration and settings between Zabbix server and Zabbix agent.
            If it is on AWS, it may be possible to cope with the security group settings, but if the OS itself is restricted, it is necessary to remove the restriction.

          • emil@hirestorm.com
            [email protected] commented
            Editing a comment
            Atsushi, I am using aws instance for zabbix agent. Zabbix server is on rackspace.
            Where should I update the firewall rule for connection from zabbix agent. which IP(private/Public, of AWS) should be used, if the configuration be done on zabbix agent end.

          • Atsushi
            Atsushi commented
            Editing a comment
            Hi [email protected],
            To connect to Zabbix server in Rackspace from Zabbix agent installed on VM on AWS, you should be able to connect unless explicitly restricted by VPC or security group.

            To connect to Zabbix agent installed on a VM on AWS from a Zabbix server in Rackspace, you will need to specify the global IP address of the VM on AWS as the setting on the Zabbix server side. However, in the Zabbix agent side setting, it should have been converted to the internal IP address inside AWS when connecting from the Zabbix server side, so specify the converted IP address in the Server setting in zabbix_agentd.conf is needed.
            If you can't connect, check the Zabbix agent log.

            Check the settings of the VPC and security group on AWS for communication in both directions.
        • Tamiris Coutinho
          Junior Member
          • Feb 2019
          • 1

          #6
          Bom dia

          Aproveitando o post estou com mesmo problema, mas no meu caso estou tentando monitorar ESXI.

          Está sendo reconhecido na regra de descoberta, porém na configuração do HOST aparece a seguinte mensagem: "Get value from agent failed: cannot connect to [[10.72.7.21]:10050]: [4] Interrupted system call". Eu notei que no log do vsphere fica com login e logout.

          Será que também pode ser a porta ou alguma regra no firewall?

          Comment

          • daohai
            Junior Member
            • Oct 2019
            • 28

            #7
            i have same problem . I config all :
            + Install Agent
            + Open Port 10050 on Client
            + Setting File config with zabbix server IP
            Please help

            Comment

            • the.monitor
              Junior Member
              Zabbix Certified Specialist
              • Aug 2019
              • 22

              #8
              Can you telnet from the Zabbix server (or Proxy if you're using one) TO the client on port 10050?

              If you cannot successfully telnet then try a packet trace - find out where the missing link is.

              You did mention a vpn, if this isn't routable FROM the zabbix server you'll have issues.

              The best practice in this scenario is to use a zabbix proxy on the edge of the environment that can talk with your remote host AND the zabbix server.
              Last edited by the.monitor; 31-10-2019, 18:47.

              Comment

              • daohai
                Junior Member
                • Oct 2019
                • 28

                #9
                Originally posted by the.monitor
                Can you telnet from the Zabbix server (or Proxy if you're using one) TO the client on port 10050?

                If you cannot successfully telnet then try a packet trace - find out where the missing link is.

                You did mention a vpn, if this isn't routable FROM the zabbix server you'll have issues.

                The best practice in this scenario is to use a zabbix proxy on the edge of the environment that can talk with your remote host AND the zabbix server.
                Hi , bro
                this is my case :
                I have 2 server For testing Zabbix agent :
                + server 1 : I install by online with yum command (centos) -> config file agent -> open port 10050 -> it's working
                + server 2 : i install offline method -> download agent from website (rpm file) -> copy to /etc -> run # rpm -ivh <filename> -> config agent file -> open port 10050 -> not working
                From zabbix server i can not telnet to server 2 , but server 1 ok.
                i don't know why ? have problem with agent install file ?
                Last edited by daohai; 01-11-2019, 02:39.

                Comment

                • the.monitor
                  Junior Member
                  Zabbix Certified Specialist
                  • Aug 2019
                  • 22

                  #10
                  Okay, so the agent installed on Server1 is fine.

                  So for Server 2 have we checked other connectivity issues first before looking at the agent?

                  i.e.
                  Can you ping Server 2 from Zabbix?
                  Can you Telnet on other ports (for other running services)

                  If you're using a hostname - is DNS working?

                  Do these machines have public or private IPs?

                  Comment

                  • daohai
                    Junior Member
                    • Oct 2019
                    • 28

                    #11
                    Originally posted by the.monitor
                    Okay, so the agent installed on Server1 is fine.

                    So for Server 2 have we checked other connectivity issues first before looking at the agent?

                    i.e.
                    Can you ping Server 2 from Zabbix?
                    Can you Telnet on other ports (for other running services)

                    If you're using a hostname - is DNS working?

                    Do these machines have public or private IPs?
                    Thank you for your reply
                    About Server 2 :
                    - From Zabbix server i can ping to server 2 but can not telnet to any port although open already
                    - i only use local IP .

                    one thing i can not understand why intsall online (automatic) it's ok but offline have so many problem .

                    i Try to test with server 3 , 4 ,5 but can not too. so i try to remove agent on server 1 (which is ok) & install agent by offline method and it's working @@

                    Comment

                    • the.monitor
                      Junior Member
                      Zabbix Certified Specialist
                      • Aug 2019
                      • 22

                      #12
                      Originally posted by daohai

                      Thank you for your reply
                      About Server 2 :
                      - From Zabbix server i can ping to server 2 but can not telnet to any port although open already
                      - i only use local IP .

                      one thing i can not understand why intsall online (automatic) it's ok but offline have so many problem .

                      i Try to test with server 3 , 4 ,5 but can not too. so i try to remove agent on server 1 (which is ok) & install agent by offline method and it's working @@

                      Going off this information,

                      You previously thought that it was the offline install on server 2 that was causing you issues. After doing an offline install on Server 1 you've ruled this out.

                      If you've confirmed that server 2 is listening on port 10050 but cannot telnet from Zabbix to server 2 then there must be something blocking your connection.
                      Either a drop all is in place, a firewall is misconfigured or Selinux is not set to permissive.

                      A ping from Zabbix server to server 2 was successful which rules out a routing issue or a subnet issue. Leaving firewall as the most likely culprit. (Assuming all the information submitted is correct and the agents have been configured correctly)


                      Comment

                      • daohai
                        Junior Member
                        • Oct 2019
                        • 28

                        #13
                        Originally posted by the.monitor


                        Going off this information,

                        You previously thought that it was the offline install on server 2 that was causing you issues. After doing an offline install on Server 1 you've ruled this out.

                        If you've confirmed that server 2 is listening on port 10050 but cannot telnet from Zabbix to server 2 then there must be something blocking your connection.
                        Either a drop all is in place, a firewall is misconfigured or Selinux is not set to permissive.

                        A ping from Zabbix server to server 2 was successful which rules out a routing issue or a subnet issue. Leaving firewall as the most likely culprit. (Assuming all the information submitted is correct and the agents have been configured correctly)

                        about firewall, i disable firewall for testing & it's not working , SElinux too . so i think may be have another reason.

                        P/s: i find reason : my server is VMware & real server is running symantec antivirus . we must to disable antivirus.
                        Last edited by daohai; 04-11-2019, 08:18.

                        Comment

                        • the.monitor
                          Junior Member
                          Zabbix Certified Specialist
                          • Aug 2019
                          • 22

                          #14
                          Glad to hear you worked this out.

                          Comment

                          • Shooter75
                            Junior Member
                            • Jul 2023
                            • 3

                            #15
                            I have same issue at VMWARE.ESXi<->VMWARE.ESXi instances with OracleLinux8.8
                            Firewall is open at 10050/tcp

                            I have ZBX-SRV 6.0LTS
                            But some Agents remained from older, 5.x version + PSK
                            Old ZBX stack excellent monitoring old instances, but 6.0LTS - only instances with agent 6.0.​

                            Comment

                            Working...