Monitor telnet

Monitor telnet

I want to know if it is possible to create a monitor trying to get server connection, for example by trying to telnet connection on port 80.
Try to make the connection, managed to make the connection, close the connection.