I really needed a small script capable of executing another script whenever a file change - eg. when watching a log file of Apache for changes. Therefore I tried a couple of different approaches but ended up with this which is quite easy on the resouces of the CPU.
Another this I noticed was the many attempts at logging in on the server with invalid user names and/or bad passwords, so I created this script.
So feel free to use this config or any variants you might create and please forward then to me so I may learn from them.
Keywords: SSH, watch, file, notification, monitor, invalid user, ban, crack, hack