I'm trying to set up an alert to trigger if a static route is missing from a Cisco router. I'm able to get this information via SNMP and have created a custom poller for the OID of 1.3.6.1.2.1.4.24.4.1.4 + the IP address. Example using 1.3.6.1.2.1.4.24.4.1.4.2.2.2.2
IP-FORWARD-MIB::ipCidrRouteNextHop.2.2.2.2.255.255.255.255.0.10.125.249.250 = IpAddress: 10.125.249.250
This returns the static route information and the next hop information (10.125.249.250). Now if I test for a static route that is not configured (1.1.1.1) I get the following:
IP-FORWARD-MIB::ipCidrRouteNextHop.1.1.1.1 = No Such Instance currently exists at this OID
I need to be able to set up an alert so that in this example an email would be sent if 1.1.1.1 is not configured on the router. Is there a way to trigger an alert in this type of scenario?