Hello, I’ve got a router with an LTE dongle for backup.
The router has two default routes. One (primary) with check-gateway=ping. And a secondary pointing toward the LTE gateway.
I’m trying to come up with a script that will check if the primary default route is active, And if it isn’t. It sends an email. This primary route is commented “VZ”. All of the failover portion works. I’m just looking for a way to alert us when it’s currently on the LTE backup. And this seems like the best way.
Can anyone point me in the right direction on how to write a script that does this?