Just upgraded mt from 2.9.x to 3.2 and 2 scripts stoped workoing, and very important ones that checks my gateways.
script 1
:local i 0; {:do {:set i ($i + 1)} while (($i < 5) && ([/ping http://www.terra.com.br src-address=200.157.x.x interval=3 count=1]=0)};
:if ($i=5) do={:log info “Link Down!”;
/ip firewall nat set [find comment=“Proxy Transparente”] disabled=yes
/ip firewall mangle set [find comment=“ITS”] disabled=yes
/ system scheduler set [find name=itsup] disabled=yes
/ system scheduler set [find name=itsdown] disabled=no
}
script 2
:local i 0; {:do {:set i ($i + 1)} while (($i < 5) && ([/ping http://www.terra.com.br src-address=200.157.x.x interval=1 count=1]=1)};
:if ($i=5) do={:log info “Link Up again!”;
/ip firewall nat set [find comment=“Proxy Transparente”] disabled=no
/ip firewall mangle set [find comment=“ITS”] disabled=no
/system scheduler set [find name=itsdown] disabled=yes
/system scheduler set [find name=itsup] disabled=no
}
thanks in advice!