in reply to Remote TCP Port Connection Monitoring
I *highly* recommend testing more than just a TCP connection because it is not rare that a system looses the ability to spawn a new process. If this happens your TCP connection test work may succeed but your application may still be failing. The 2nd of tachyon's examples is the way to go. Just my 2c.
--jaga