Hi all,
I'm unsure where to start the next project step and hope someone can give me an advise or give me a direction.
Searching: A mechanism that helps me report/detect/monitor when the failover has been initiated/taken place.
Given: A router with WAN-Failover configured, default-WAN goes via ether1 to a DSL-Router and backup-WAN goes via ether2 to a SXT for LTE backup
Additionaly: Prometheus/Grafana with alarming, Raspi-Boxes with Shell / Script capabilities....
Ideas:
- Monitor in Prometheus when the Default-Gateway changes --> not feasible as I can't extract/see what the default gateway is in Prometheus, neither using mikrotik_exporter nor snmp_exporter
- Script: Write a script on the Router that is triggered when a switch of the gateway occurs --> haven't found a clue where to trigger scripts on events
- Alternatives: I can monitor the availability of the DSL-Line or the DSL-Router, or I can monitor if the traffic on the LTE-interface is > 0. --> But both examples don't show the fact, whether the default route has changed or not. Maybe due to a bad configuration, traffic leaks through the LTE device, although DSL is available. Or maybe the failover didn't work although the monitoring shows that the DSL-Line is down
Goal: I would like to monitor the fact that the default route has changed and not a series of data that conclude that it is highly probable that the default route might have changed.
Does anybody know of such a solution or have any ideas where to start implementing?
Cheers,
plani