Zabbix server-5, Debian 10.4. Data from remote hosts are collected via Zabbix Proxy ( zbp1 ). Scheme of connection is on image below.
Remote host connects via his ISP #1 to main office using VPN-servers. On Main office there're two VPN servers (located on two separate ISPs), named VPN #1 and VPN #2. Each server uses it's own subnet, i.e VPN #1: 10.30.0.0/16, VPN #2: 10.40.0.0/16.
On Zabbix server host is created manually, two interfaces are defined (Type: agent, ip1: 10.30.0.10, ip2: 10.40.0.10). Strandard Template_OS_Linux is connected to host. Image of host creation is below.
When host is connected to VPN #1 via ISP #2.1 - information is gathered by Zabbix server (because in host definition IP-address of this subnet is declared first). But, when host switches to another VPN-server (VPN #2 and ISP #2.2) Zabbix server says, that host is unreachable. So, no data is collecting.
How can I tell Zabbix server, that my remote host connects to two separate remote VPN-servers and Zabbix-server has to gather information from one interface of two, that is active now? And if all two interfaces are unreachable - then it has to report problems.
Creation of two separate hosts on each subnet is not a good idea...
Joining VPN #1 and VPN #2 into one subnet is not possible now.