The stupid question is the question not asked | |
PerlMonks |
Code Review: Checking open ports.by Chady (Priest) |
on Jun 09, 2003 at 08:12 UTC ( [id://264266]=perlquestion: print w/replies, xml ) | Need Help?? |
Chady has asked for the wisdom of the Perl Monks concerning the following question: Dear monks, I'm writing a small utility to monitor certain services on a dozen servers or so. I shouldn't have access on these servers, so I decided for the POP, SMTP and FTP monitoring to just check if their ports are open, since I wouldn't have access to check a logon. I wrote this snippet:
Since I have a fairly small knowledge in networking, I was wondering if this approach is reasonable; Is there another way to check if the services are up without having to get a username/password and try a real login? He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life. Chady | http://chady.net/
Back to
Seekers of Perl Wisdom
|
|