SSH Log Monitoring and Alerting

This simple script comes in handy for monitoring most any flat file logs. It uses the File::Tail Perl module and is watching the sshd auth.log file in the below example. Change the ’system’ function to launch any processes you may wish. Let me know if anyone makes any tweaks or modifications to improve the functionality.