in reply to Perl Monitoring Script

See this thread, this thread, and this thread. If you want to do this on the local host, just use the Unix command grep to get the information you want out of sshd's log files.