ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 3.4.9
    • Component/s: Frontend (F), Server (S)
    • None

      Steps to reproduce:

      1. Two Zabbix Servers are behind HAProxy Servers in Active/Passive mode. Part of haproxy.cfg from one of the HAProxy server.
      frontend ha-monit-app
      bind :10051
      mode tcp
      default_backend monit-app
      backend monit-app
      server monit-app-01 10.164.0.10:10051 check
      server monit-app-02 10.156.0.10:10051 check backup
      

      There are two HAProxy** servers with the same configuration are switched using failover ip 172.31.255.254
      I've checked with nmap & ping is the failover ip available from other nodes, specially from zabbix web server and there those results:

      PING 172.31.255.254 (172.31.255.254) 56(84) bytes of data.
      64 bytes from 172.31.255.254: icmp_seq=1 ttl=64 time=1.43 ms
      64 bytes from 172.31.255.254: icmp_seq=2 ttl=64 time=0.284 ms
      64 bytes from 172.31.255.254: icmp_seq=3 ttl=64 time=0.326 ms
      64 bytes from 172.31.255.254: icmp_seq=4 ttl=64 time=0.306 ms
      64 bytes from 172.31.255.254: icmp_seq=5 ttl=64 time=0.277 ms
      
      --- 172.31.255.254 ping statistics ---
      5 packets transmitted, 5 received, 0% packet loss, time 4054ms
      rtt min/avg/max/mdev = 0.277/0.525/1.433/0.454 ms
      

      And rest

      nmap -Pn -p 10051 172.31.255.254
      
      Starting Nmap 7.40 ( https://nmap.org ) at 2018-06-15 00:59 CEST
      Nmap scan report for 172.31.255.254
      Host is up (0.0012s latency).
      PORT STATE SERVICE
      10051/tcp open zabbix-trapper
      
      Nmap done: 1 IP address (1 host up) scanned in 0.29 seconds
      
      telnet 172.31.255.254 10051
      Trying 172.31.255.254...
      Connected to 172.31.255.254.
      Escape character is '^]'.
      ^CConnection closed by foreign host.
      

      So everything looks good. That's why on frontend server in zabbix.conf.php I've set following values:

      $ZBX_SERVER	        = '172.31.255.254';
      $ZBX_SERVER_PORT	= '10051';
      $ZBX_SERVER_NAME	= 'Zabbix GCP HAProxy';

      **
      **Result:**
      I attached some screen to show you that this doesn't work on front.

      This is directly from frontend
      It doesn't really make sense. I'm afraid I will have the same problem with zabbix proxy servers when they will want to connect to those servers behind HAProxy.

      ...

            Assignee:
            Unassigned
            Reporter:
            Konrad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: