Community discussions

MUM Europe 2020
 
gotsprings
Forum Veteran
Forum Veteran
Topic Author
Posts: 838
Joined: Mon May 14, 2012 9:30 pm

Monitoring a Port help?

Mon Jul 01, 2019 7:13 pm

I have a device that locks up. Send pings to it and it still replies. Bring up its webserver... that works too.

So I need a script to look at a specific service port TCP 51510

I would like to make something like this...
:if ([/ping 172.16.16.16 count=5] > 3)  do={
  :log info "It's Up"
} else={
  :log info "It's Probably Down"
}

Just not sure how to adapt that to look at a specific port.
"It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
Mark Twain
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1796
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Monitoring a Port help?

Mon Jul 01, 2019 10:17 pm

If there is a resource you could access, the "fetch" can help you
https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch

Who is online

Users browsing this forum: No registered users and 6 guests