<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Failover script alternar link no MYSQL]]></title><description><![CDATA[<p dir="auto">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.<br />
Preciso <strong>criar um script</strong> para gravar nessa base my sql a informação de que o link caiu.<br />
A idéia seria que quando o <strong>link A cair, o pfsense / script grave automaticamente na tabela do my sql que o link A caiu e alternar para o Link B</strong>.<br />
Imaginei <strong>Link A = 0, Link B = 1</strong>, por exemplo, ele gravando 0 ou 1 alternamos nessa tabela do banco resolveríamos o problema.<br />
Alguém tem alguma sugestão?<br />
Obrigado pessoal</p>
<p dir="auto">/////</p>
<p dir="auto">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.<br />
I need to <strong>create a script</strong> to record on that basis my sql the information that the link fell.<br />
The idea would be that when <strong>link A goes down, the pfsense / script automatically writes to my sql table that link A went down and switch to Link B.</strong><br />
I imagined <strong>Link A = 0, Link B</strong> = 1, for example, by recording 0 or 1 we alternate in this table of the bank we would solve the problem.<br />
Does anyone have any suggestions?<br />
Thank you guys</p>
]]></description><link>https://forum.netgate.com/topic/159828/failover-script-alternar-link-no-mysql</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 18:19:06 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/159828.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Jan 2021 14:31:01 GMT</pubDate><ttl>60</ttl></channel></rss>