Community discussions

MikroTik App
 
gotsprings
Forum Guru
Forum Guru
Topic Author
Posts: 2103
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.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
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: diamuxin, dredex and 23 guests