Hello,
I am trying to figure out how to monitor switching between defautl routes in dual wan setup.
I have setup recursive routing for wan failover with tutorial from Mikrotik Failover setup for dual-WAN with DHCP clients
It works just fine however I would like to know if there is an option to monitor switching between default routes via SNMP? I cant seem to find the correct OID numbers. I am using Zabbix for monitoring do I would like to utilize it.
I know I can probably setup netwatch script that sends an email if WAN1 goes down, but as I said it would be nice to get it from SNMP polling.
Is ther any way to do that?
I have tried google/chat gpt but nothing seems to give me correct OIDs.
I know I can monitor roouting protocols like BGP or OSPF but cant seem to find anything with static routes.
I am using RouterOS 7.20.4
Thank you for your idea.
I was able to find OIDs for various routes even the default ones. However since I have two of them
1.3.6.1.2.1.4.24.4.1.13.0.0.0.0.0.0.0.0.0.9.9.9.9 = "-1" [ASN_INTEGER]
1.3.6.1.2.1.4.24.4.1.13.0.0.0.0.0.0.0.0.0.149.112.112.112 = "-1" [ASN_INTEGER]
I dont think there is a way to tell a difference which one of them i active and which one of them is not
First one has lower metric
2 As 0.0.0.0/0 9.9.9.9 main 1
Second one has higher for the failover to work
3 s 0.0.0.0/0 149.112.112.112 main 250
I cant seem to get OID correctly. I always get the sattus from SNMP for both routes with -1