June 23Jun 23 So I have dockers that are data intensive and so I wanted to automate their shutdown whenever my primary internet goes down and the router switches over to failover which is on a limited 5G data plan (UniFi 5G Backup). The ol' Elgoogs said to spin up a home assistant docker, and to use the unraid and unifi addons. Before I do something as complicated as that, I wanted to see if anyone else have a similar situation and they use something that's more built into unraid.Thank you in advance!PS: Also can anyone recommend an e-sim provider that's not $80/year for 10GB of backup internet? Lol.
June 23Jun 23 How technical are you? Last time I looked (I decided it wasn't worth the effort) UniFi uses dpinger to check the interface and start the failover.You can create your own dpinger instance on the unifi hardware, which can run a script (on the unifi appliance) which in turn used ssh (and sshpass - be careful bad mmkay) to launch a script on the unraid box to "docker stop" containers.This should help. Its a pain tbh,
June 23Jun 23 Just now, Flubster said:How technical are you? Last time I looked (I decided it wasn't worth the effort) UniFi uses dpinger to check the interface and start the failover.You can create your own dpinger instance on the unifi hardware, which can run a script (on the unifi appliance) which in turn used ssh (and sshpass - be careful bad mmkay) to launch a script on the unraid box to "docker stop" containers.This should help. Its a pain tbh,Other option as a thought - if you use something like cloudflare (or another ddns provider), you could set the unifi to update the ddns entry for a hostname - as long as WAN1 is static you can nslookup the hostname and if its your static IP you'll know you are on WAN1, should this change then you'll know you are on WAN2 or failover
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.