Failover script alternar link no MYSQL
-
Bom Dia pessoal, tenho um ambiente com um Failover (2 ips fixos dedicados fibra) configurado e funciona corretamente, porém tenho uma aplicação externa que se conecta através de ip wan, logo quando um dos links cai, ela não alterna sozinha.
Preciso criar um script para gravar nessa base my sql a informação de que o link caiu.
A idéia seria que quando o link A cair, o pfsense / script grave automaticamente na tabela do my sql que o link A caiu e alternar para o Link B.
Imaginei Link A = 0, Link B = 1, por exemplo, ele gravando 0 ou 1 alternamos nessa tabela do banco resolveríamos o problema.
Alguém tem alguma sugestão?
Obrigado pessoal/////
Good morning guys, I have an environment with a Failover (2 fixed ips dedicated fiber) working and working correctly, however I have an external application that connects via ip wan, so when one of the links goes down, it does not switch on its own.
I need to create a script to record on that basis my sql the information that the link fell.
The idea would be that when link A goes down, the pfsense / script automatically writes to my sql table that link A went down and switch to Link B.
I imagined Link A = 0, Link B = 1, for example, by recording 0 or 1 we alternate in this table of the bank we would solve the problem.
Does anyone have any suggestions?
Thank you guys