Community discussions

MUM Europe 2020
 
User avatar
BrianHiggins
Long time Member
Long time Member
Topic Author
Posts: 600
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

better netwatch

Sat Sep 23, 2006 6:23 am

option to set down after N fails in netwatch.

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.
 
User avatar
BrianHiggins
Long time Member
Long time Member
Topic Author
Posts: 600
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Sun Oct 01, 2006 10:37 pm

any update on if this is going to be included at some point?
 
User avatar
savagedavid
Trainer
Trainer
Posts: 310
Joined: Thu Aug 25, 2005 12:58 pm
Location: Cape Town, South Africa
Contact:

Tue Dec 05, 2006 10:58 pm

You can do this with scripting at the moment. Try something like:
 :local i 0; {:do {:set i ($i + 1); :put $i; :delay 2} while (($i < 5) && ([/ping 196.22.185.221 count=1 interval=5]=0)}; :if ($i=5) do={ :log info "Gateway is down!" 
This will ping an address 5 times at 5 second intervals and only if all 5 pings are unsuccessful will it run the rest of the script
 
ipdruide
Frequent Visitor
Frequent Visitor
Posts: 57
Joined: Mon Aug 07, 2006 2:07 pm
Location: Paris France

Another netwatch enhancement ?

Thu Feb 22, 2007 4:41 pm

Hi,

I would also suggest that netwatch would execute a script :

- One time or
- as many times as N or
- until STATUS changes back to previous state.

Regards.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1370
Joined: Mon Jan 05, 2009 6:23 pm
Location: Worldwide
Contact:

Re: better netwatch

Sat Jul 11, 2009 1:29 pm

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.
wiki.mikrotik.com/wiki/NetworkPro_on_Quality_of_Service
 
GREG3f
Frequent Visitor
Frequent Visitor
Posts: 82
Joined: Wed Dec 03, 2008 9:52 pm

Re: better netwatch

Sun Sep 20, 2009 1:56 am

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".

Anyone smart enough to figure this out?

Who is online

Users browsing this forum: jebz, MSN [Bot], okw and 103 guests