Hi,
is there any way how I can check is other machine is listening od specific port? If yes do nothing, if not send an email. WIth netwatch I am monitoring the all machinem but i need to monitor specific services:
e.g. with telnet command?
step 1 → system telnet 10.160.250.130 1234 (if port is ok mikrotik is connected)
step 2 → if step 1 ok then disconnect (i noticed in terminal when i exceute above command it stay connected so i assume that each time when script will run will open telnet connection and that connection will stay open???)
step 3 → if device is not listening on that port send mail “Service xy is stopped”
Thanks