I manually run the following command to view the failed logins:
who /etc/security/failedlogin
This lists all the entries, I also use tail to monitor the last few entries:
who /etc/security/failedlogin | tail -20
But what I'd really like to do is to automate this so that if I have several failed attempts either from the same user, same machine, and/or during some period of time, a message would be generated and sent to an account of my choosing to alert that individual. Any thoughts would be appreciated.
who /etc/security/failedlogin
This lists all the entries, I also use tail to monitor the last few entries:
who /etc/security/failedlogin | tail -20
But what I'd really like to do is to automate this so that if I have several failed attempts either from the same user, same machine, and/or during some period of time, a message would be generated and sent to an account of my choosing to alert that individual. Any thoughts would be appreciated.