Hello!
I'm relatively new to using Zabbix, so I'm hoping someone will be able to help me with a solution.
We are planning to implement monitoring using Zabbix in our company, as we have a distributed network, separated into three locations, we depend on monitoring external locations using a proxy server.
In order to implement a fail-safe in case the proxy server fails, we would like to have a fallback output in the form of automatic switching of hosts from being monitored by the proxy, to the main server, or another proxy server. In short, we want to implement redundancy.
We would like the solution to be as fast as possible, so I was wondering if it is possible to run scripts through triggers that would update the hosts by changing their "monitored by proxy" value.
For the proxy, we have a trigger configured that reports immediately that there is no connection to the proxy.

I found in the Actions menu, the ability to set an action for the Trigger, so that when a problem occurs, there is an opportunity to perform certain actions. At the same time, there is the possibility to use created scripts.
However, I am not sure if it is possible to create a script that updates the values of a host or a hosts group.
When scripting here, should the Zabbix API be used?
Is there anyone who would be able to explain if it can be done the way I described above, or do I have to look for another solution?
Zabbix Server version: 6.0.12
Zabbix Proxy version: 6.0.12
The server as well as the proxy are put on FreeBSD
If there is an option to do this using scripts in Python, I would ask for a possible explanation of how such scripts can be used in Zabbix itself
I'm relatively new to using Zabbix, so I'm hoping someone will be able to help me with a solution.
We are planning to implement monitoring using Zabbix in our company, as we have a distributed network, separated into three locations, we depend on monitoring external locations using a proxy server.
In order to implement a fail-safe in case the proxy server fails, we would like to have a fallback output in the form of automatic switching of hosts from being monitored by the proxy, to the main server, or another proxy server. In short, we want to implement redundancy.
We would like the solution to be as fast as possible, so I was wondering if it is possible to run scripts through triggers that would update the hosts by changing their "monitored by proxy" value.
For the proxy, we have a trigger configured that reports immediately that there is no connection to the proxy.
I found in the Actions menu, the ability to set an action for the Trigger, so that when a problem occurs, there is an opportunity to perform certain actions. At the same time, there is the possibility to use created scripts.
However, I am not sure if it is possible to create a script that updates the values of a host or a hosts group.
When scripting here, should the Zabbix API be used?
Is there anyone who would be able to explain if it can be done the way I described above, or do I have to look for another solution?
Zabbix Server version: 6.0.12
Zabbix Proxy version: 6.0.12
The server as well as the proxy are put on FreeBSD
If there is an option to do this using scripts in Python, I would ask for a possible explanation of how such scripts can be used in Zabbix itself
Comment