Page 1 of 1
Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 2:56 am
by tabate47
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?
Re: Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 3:36 am
by kiler129
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?
![Wink ;)](./images/smilies/icon_wink.gif)
Re: Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 7:32 am
by tabate47
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?
Re: Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 11:57 am
by G2Dolphin
I think "The Dude" is better for your solution. This is a monitoring tool by MikroTik itself.
Re: Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 1:20 pm
by troffasky
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
![Smile :-)](./images/smilies/icon_smile.gif)
Re: Ping Check All Clients With MikroTik Routers
Posted: Sat Jan 23, 2016 9:05 pm
by tabate47
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?
Posted: Sun Jan 24, 2016 1:18 am
by jarda
One dude server is enough. The client is for observations and management, no need to run always.
Re: Ping Check All Clients With MikroTik Routers
Posted: Sun Jan 24, 2016 2:49 am
by tabate47
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?
Posted: Sun Jan 24, 2016 8:45 am
by jarda
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.
Re: Ping Check All Clients With MikroTik Routers
Posted: Sun Jan 24, 2016 9:11 am
by tabate47
Where can you get the dude that runs on a windows machine?
Re: Ping Check All Clients With MikroTik Routers
Posted: Sun Jan 24, 2016 10:51 pm
by PPeters
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.