reasoning, I want to run a script to change my OSPF costs on redundant links to fail over to an alternate link if my ping times increase above a certain number, but I don’t want the script to run if there is just one or two erronious “high” pings (in this case 5ms or higher), or a single dropped packet…
a similar solution would be to have an option to track the average ping times over the last N probe attempts, and to be able to set a down status if that average increases above a pre-defined limit.
I am looking at the 3.25 netwatch and I see it is missing the settings from the ping window, where you can specify interface, routing table, src-sddress etc. all this should be available from ntewatch + more. So MikroTik dev teаm - this is my request for today Good luck with making it happen.
Is there a way to use this script to send email when specified IP does not reply for 5 consecutive pings and then have a second email when IP does respond to 5 consecutive pings.
Using netwatch is too sensitive as I believe it changes status if a single ping is lost.
I assume we have to enable and disable scripts so that when link is down, script it is only running “Up Script” and after link is up it only runs “Down Script”.