Community discussions

MikroTik App
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 511
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 2:56 am

We have all of our clients on some type of MikroTik router. I would like to be able to enter all of the routers cloud ip addresses into my MikroTik router and ping them every fifteen minutes or so. If a router goes down, I want to receive an email that the internet is out at that location. I can't seem to find a way for the router to accept the cloud ip address. It always translates it into a numerical ip address. Can this be done?
 
User avatar
kiler129
Member
Member
Posts: 356
Joined: Tue Mar 31, 2015 4:32 pm
Location: IL, USA
Contact:

Re: Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 3:36 am

Actually it can be done using scripts, but maybe it will be better to write such script and run it on external server instead of router? ;)
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 511
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 7:32 am

Something like:

all dynamic ip addresses listed here

for each dynamic ip address ping it

if ping good reset back to 0 bad pings - if ping bad 3 times in a row device down- email device name down last seen at x time

Can someone help me write this in code?
 
User avatar
G2Dolphin
Member Candidate
Member Candidate
Posts: 164
Joined: Sun May 17, 2015 6:03 pm
Location: Moscow, Russia

Re: Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 11:57 am

I think "The Dude" is better for your solution. This is a monitoring tool by MikroTik itself.
 
troffasky
Member
Member
Posts: 436
Joined: Wed Mar 26, 2014 4:37 pm

Re: Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 1:20 pm

I think "The Dude" is better for your solution. This is a monitoring tool by MikroTik itself.
Quite - it sounds like the OP is trying to implement The Dude himself with scripts :-)
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 511
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: Ping Check All Clients With MikroTik Routers

Sat Jan 23, 2016 9:05 pm

I've never used the dude.

Is this correct:

You need the server on each router you want to monitor, and then you use the client to actually view the monitoring?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Sun Jan 24, 2016 1:18 am

One dude server is enough. The client is for observations and management, no need to run always.
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 511
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: Ping Check All Clients With MikroTik Routers

Sun Jan 24, 2016 2:49 am

With 1 dude server, do you enter the ip address of each individual router?

Do you need to do anything to the routers themselves in order for them to be monitored by the dude?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Sun Jan 24, 2016 8:45 am

Generally yes. The only conditions are that device must be reachable and be willing to response. Nothing more.

Dude is way more useful than just for pinging. Google for pictures and read manual first to get some insight.

But maybe using watchdog on some of your routers will do the same pinging job easily too.
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 511
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: Ping Check All Clients With MikroTik Routers

Sun Jan 24, 2016 9:11 am

Where can you get the dude that runs on a windows machine?
 
PPeters
just joined
Posts: 6
Joined: Sat Sep 28, 2013 1:54 am

Re: Ping Check All Clients With MikroTik Routers

Sun Jan 24, 2016 10:51 pm

Google The Dude 4.0 Beta 3 that is the last version for windows. That's what we are using. I don't think Mikrotik has a download link to that version.