Ad Widget

Collapse

Active Proxy for multiply servers

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wmp
    Junior Member
    • Apr 2023
    • 8

    #1

    Active Proxy for multiply servers


    Sup guys! Im new here and need a some help to undersud processing with proxys.
    I have 500k+ hosts needed to monitoring, so ahead of trobles with performance have idea to decentralize it all. BUT! Main intention its one (he he, say perfomance be4) server with mostfull data and few another aloceted severs.
    So
    Idea was create proxys near alocated servers, all agents connect to proxy and user 2 servers for every proxys in conf, main server and local. But its not worked for my test stand.. Documentation say Servers can be multiply in passive mode and with nodes in active:

    So, im create 1 test proxy, 2 servers and 1 host (v6.4 on ubuntu/kali) in both mode i can connect proxy to both serves, so i was add host with active agent2 on servers use proxie. and it was working (I thought so)

    in active proxy mode after time one server lost connection and stop resived data, second still works.
    in passive proxy mode both servers has connected but only one server have resived data from host -_-

    On the host agent2 was use only proxy adress in config.

    Сan this variation work? Or i need use proxy only for main server, and connect hosts to allocated server directly?

  • Answer selected by wmp at 20-04-2023, 13:37.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    No... only agent can work with multiple servers/proxies in passive mode, as it just answers the questions at that moment... It does not care how many different ones ask those questions (given that they are allowed in config).
    In active mode it communicates with only one server/proxy, gathers data locally and sends it over to that server/proxy, then removes local data (clears its caches). In active mode it cannot do so, that some items need to be sent to one proxy and other item value to other proxy... It will ask from only one proxy/server, what it should do.
    Server A list of comma-delimited IP addresses, optionally in CIDR notation, or hostnames of Zabbix servers and Zabbix proxies.
    ServerActive The Zabbix server/proxy address or cluster configuration to get active checks from.
    You see, "Server" allows multiple ​entries, "ServerActive" only one address or server cluster config...

    Proxy can not do this. it gathers data from multiple agents and then forwards it to one server instance and removes that data locally. Docs say pretty clearly...
    Server If ProxyMode is set to active mode: Zabbix server IP address or DNS name (address: port) or cluster (address: port;address2: port) to get configuration data from and send data to.
    If ProxyMode is set to passive mode: List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix server.
    in active mode it has to be either single server address or in HA setup the cluster definition, as proxy will ask one of those HA nodes for config...
    The "list ​of addresses" (plural) in passive mode means server HA setup, where each of those servers has their own IP/name. It does not mean multiple different zabbix instances. In passive mode its just a "allow list", which hosts can query data and send config, there is no need to specify it in "cluster format"...


    So... there cannot be "local" and "global" server... there can be only one server to rule them all...
    Last edited by cyber; 19-04-2023, 08:59.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #2
      No... only agent can work with multiple servers/proxies in passive mode, as it just answers the questions at that moment... It does not care how many different ones ask those questions (given that they are allowed in config).
      In active mode it communicates with only one server/proxy, gathers data locally and sends it over to that server/proxy, then removes local data (clears its caches). In active mode it cannot do so, that some items need to be sent to one proxy and other item value to other proxy... It will ask from only one proxy/server, what it should do.
      Server A list of comma-delimited IP addresses, optionally in CIDR notation, or hostnames of Zabbix servers and Zabbix proxies.
      ServerActive The Zabbix server/proxy address or cluster configuration to get active checks from.
      You see, "Server" allows multiple ​entries, "ServerActive" only one address or server cluster config...

      Proxy can not do this. it gathers data from multiple agents and then forwards it to one server instance and removes that data locally. Docs say pretty clearly...
      Server If ProxyMode is set to active mode: Zabbix server IP address or DNS name (address: port) or cluster (address: port;address2: port) to get configuration data from and send data to.
      If ProxyMode is set to passive mode: List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix server.
      in active mode it has to be either single server address or in HA setup the cluster definition, as proxy will ask one of those HA nodes for config...
      The "list ​of addresses" (plural) in passive mode means server HA setup, where each of those servers has their own IP/name. It does not mean multiple different zabbix instances. In passive mode its just a "allow list", which hosts can query data and send config, there is no need to specify it in "cluster format"...


      So... there cannot be "local" and "global" server... there can be only one server to rule them all...
      Last edited by cyber; 19-04-2023, 08:59.

      Comment

      • wmp
        Junior Member
        • Apr 2023
        • 8

        #3
        Thanks for the detailed answer.

        Comment

        • wmp
          Junior Member
          • Apr 2023
          • 8

          #4
          Originally posted by cyber
          No... only agent can work with multiple servers/proxies in passive mode, as it just answers the questions at that moment... It does not care how many different ones ask those questions (given that they are allowed in config).
          In active mode it communicates with only one server/proxy, gathers data locally and sends it over to that server/proxy, then removes local data (clears its caches). In active mode it cannot do so, that some items need to be sent to one proxy and other item value to other proxy... It will ask from only one proxy/server, what it should do.
          is it true? comments in agent config say:
          Code:
           Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma.
          Click image for larger version

Name:	image.png
Views:	2014
Size:	148.5 KB
ID:	463222

          And it still works with two servers, one of which is located behind a proxy. This is not exactly what I planned to do, since a direct connection to the server will create a lot of traffic as hosts grow, but it works.
          Pending version 7.2 and the ability to monitor a pool of servers from a single interface. This is exactly the solution I was looking for.​​

          Comment

          Working...