Quote:
Originally Posted by Vimuth
Dear Gentleman,
Could someone please advice me as to how I should telnet continuously to a certain port on a server from a remote machine in order to determine if there are any disconns. Preferably I'd like to take the incoming telnet stream to a file at the server end and check if there are any disconnections. Heard this can be done with the use of "nc" ? If thats case the would someone please help me out with the steps.
For an instance say my server IP which the clients are connecting to is 212.*.*.* and the port is 7005. Please help out gentlemen.
Many thanks in advance
Cheers
Vimo
|
Like frndrfoe says, nagios is a good choice but of course there are simpler monitoring tools to configure, like monit or big brother.
As you asked, nc or netcat can monitor the port for a connection.
nc hostname port
echo command | nc hostname port