Ad Widget

Collapse

Proxy Unable to connect to the server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kylo
    Junior Member
    • Oct 2019
    • 5

    #1

    Proxy Unable to connect to the server

    Greetings all

    Little bit of background
    I have a Zabbix server hosted in AWS with a security group that allows 10051 traffic and internal ip 192.x.x.x with internet breakout.
    I have a Zabbix proxy in office running on a VPN that allows me to connect to my AWS resources with internal ip 10.x.x.x.
    From the proxy I can telnet to my server on 10051 and I receive the standard connected to .... message
    So as far as I can tell my proxy can send traffic to the server which it should

    Tailing the proxy logs I get the following:

    Unable to connect to the server [servername] :10051 [cannot connect to [[ servername ]]:10051]: [4] Interrupted system call]
    Still unable to connect...
    Unable to connect to the server [servername] :10051 [cannot connect to [[ servername ]]:10051]: [4] Interrupted system call]
    Still unable to connect...

    In my proxy.conf I have the following set:

    ProxyMode=0
    Server=servername
    ServerPort=10051
    Hostname=myproxyhostname
    SourceIP=the ip of my zabbix proxy 10.x.x.x


    On the Zabbix Frontend

    My proxy is set to Active
    I have set the name to myproxyhostname (the same as in my proxy config)
    And the IP as the same as my source IP

    I am honestly at a loss here, AFAIK and see everything is setup correctly. From my understanding the proxy is there to act as a "gateway" to send traffic to your zabbix server so its only necessary for my proxy to be able to connect to my server

    Any thoughts or ideas would be welcomed

    Please let me know if you require any further information

    regards
    K

  • storyteller
    Junior Member
    • Oct 2019
    • 23

    #2
    On what os runs the server and proxy. Do you have selinux active? If yes, you try to disable selinux?

    Comment

    • kylo
      Junior Member
      • Oct 2019
      • 5

      #3
      Server runs on amazon linux2 and proxy runs on ubuntu. SELinux is disabled, No iptables set. Ill continue troubleshooting and post any findings

      getenforce
      Disabled

      Comment

      • tech.rss
        Junior Member
        • Oct 2019
        • 10

        #4
        Check this.
        Open this file then comment out debug option & increase 5 then save and restart zabbix server.
        vi /etc/zabbix/zabbix_server.conf
        DebugLevel=5

        then check server log using below command
        tail -f /var/log/zabbix/zabbix_server.log

        This is for ubuntu if another os so find this log file.

        Comment

        • storyteller
          Junior Member
          • Oct 2019
          • 23

          #5
          Now i see, at Server= you need the zabbix server ip or hostname. In my installation SourceIP is commented.

          Comment

          • kylo
            Junior Member
            • Oct 2019
            • 5

            #6
            Right I have specified my zabbix server hostname as the "Server=" and I am able to resolve the hostname of the server!
            in my case:
            Server=zabbixserver
            I can telnet zabbixserver 10051, I have ICMP disabled so I wont get a result back when I ping, but when I run "ping zabbixserver" I get the PING zabbixserver (x.x.x.x): 56 data bytes reply

            I will try changing the "Server" to use both hostname and IP

            Comment

            • kylo
              Junior Member
              • Oct 2019
              • 5

              #7
              Changed Server from using a hostname to IP, I am disabling and re-enabling my proxy on the zabbix server every time I make changes

              In logs I get:
              Still unable to connect:
              Unable to connect to the server [x.x.x.x]:10051 [cannot connect to [[x.x.x.x]:10051]: [4] Interrupted system call]
              I have opened the connect from the server to allow ALL traffic from the proxy so I get a reply from the Server when I ping now, something else is up will dig deeper

              Comment


              • storyteller
                storyteller commented
                Editing a comment
                telnet to x.x.x.x:10051 works?

              • kylo
                kylo commented
                Editing a comment
                Yeah telnet works
            • tech.rss
              Junior Member
              • Oct 2019
              • 10

              #8
              Must be like as below config

              This is for server config file
              vi /etc/zabbix/zabbix_server.conf
              DBName=zabbix_db
              DBUser=zabbix_db_user
              DBPassword=zabbix_db_user_password

              This is for agent config file
              vi /etc/zabbix/zabbix_agentd.conf
              Server=zabbix_server_ip_address
              ServerActive=zabbix_server_ip_address
              Hostname=zabbix_server_host_name

              Then restart zabbix server service & agent

              Thanks.

              Comment

              • kylo
                Junior Member
                • Oct 2019
                • 5

                #9
                Greetings all

                I managed to sort out my problem was a bit of a doh moment!

                On the Zabbix Server > Administration > Proxies
                I changed my proxy to passive mode and for the ip i configured it as : 127.0.0.1 and it started checking in

                thanks all for the help

                Comment

                Working...