We are testing Proxy Group functionality in Zabbix 7.4. To avoid specifying proxy IPs in ServerActive param on hosts we put a standard Azure LoadBalancer in front of a proxy group and set ServerActive to LB DNS name.
We set "Address for active agents" setting in Proxy setup to real proxy IPs.
This setup allows us to add/remove proxies in a group without changing agent configuration.
It seems it works from the first glance . I can stop a proxy and my host automatically switches to another one. I start a proxy again and it switches back to the original because (if I understand it correctly) it was originally registered with it.
One caveat we found so far - it requires agent 7.4, our old 6.4 agent did not like proxy stop/start test - I guess it looses info of what proxy it was registered.
And that leads to my question-
- On the first start Zabbix Agent uses ServerActive value ( i.e. LB DNS name) to connect to random proxy in a group.
- Proxy registers a host and (it looks like) sends back a value (proxy IP) from "Address for active agents" parameter.
- What happens on all consequent runs? Does Agent sends metrics to proxy IP directly, ignoring ServerActive value or it still uses ServerActive IP/DNS but sends registered proxy IP along with it? .
In other words, does a host need to be whitelisted on proxy side or all traffic to proxy will be flowing through LB?
We set "Address for active agents" setting in Proxy setup to real proxy IPs.
This setup allows us to add/remove proxies in a group without changing agent configuration.
It seems it works from the first glance . I can stop a proxy and my host automatically switches to another one. I start a proxy again and it switches back to the original because (if I understand it correctly) it was originally registered with it.
One caveat we found so far - it requires agent 7.4, our old 6.4 agent did not like proxy stop/start test - I guess it looses info of what proxy it was registered.
And that leads to my question-
- On the first start Zabbix Agent uses ServerActive value ( i.e. LB DNS name) to connect to random proxy in a group.
- Proxy registers a host and (it looks like) sends back a value (proxy IP) from "Address for active agents" parameter.
- What happens on all consequent runs? Does Agent sends metrics to proxy IP directly, ignoring ServerActive value or it still uses ServerActive IP/DNS but sends registered proxy IP along with it? .
In other words, does a host need to be whitelisted on proxy side or all traffic to proxy will be flowing through LB?
Not everyoe has "azure loadbalancers" on their tool list..
Comment