Do any of you have some nice scripts that I can use to monitor OSPF? I've written a script that monitors the number of OSPF routes and emails me if this number changes...but there must be an easier and more accurate way of monitoring OSPF as my below script spammed my inbox :/
:local count
:local normal (63)
:local identity [/system identity get name]
:local time [/system clock get time]
:local date [/system clock get date]
:set count [/ip route print count-only where distance=110]
:if ($count!=$normal) do={
:log info ($count)
:log info ("ospf unstable")
/ip route print file="OSPF-ROUTES" where distance=110
/tool e-mail send to=xxx from=xxx subject=("$identity has updated OSPF routes") body=("from $normal to $count") file="OSPF-ROUTES.txt"
} else={
:log info ("OSPF stable")
}