This is for 5 clients on a sector on wireless interface, wlan1.
Change the IPs to those of the client RBs and change wlan1 to your wireless interface.
Add to scheduler to run once on startup.
#AUTO restart stalled sector
#Ping Sector clients
#If no successful pings -> Restart Sector
:local latency
:local runloop true
:while ($runloop = true) do={
:delay 20s
:set latency 0
:local latency1 [/ping address=172.18.194.6 interval=1000ms count=1];
:local latency2 [/ping address=172.18.194.14 interval=1000ms count=1];
:local latency3 [/ping address=172.18.194.22 interval=1000ms count=1];
:local latency4 [/ping address=172.18.194.30 interval=1000ms count=1];
:local latency5 [/ping address=172.18.194.86 interval=1000ms count=1];
:set latency ($latency1 + $latency2 +$latency3 + $latency4 + $latency5)
if ($latency = 0) do={
:log info "Sector Freeze detected"
:log info "Sector Disabled"
interface disable wlan1
delay 3s
interface enable wlan1
:log info "Sector Enabled"
delay 100s
}
}
Its not an elegant solution, but i wrote it in 5min a while back and it solved the exact issue you are having.
If you neaten, tweak, come up with something better please share.