I’m trying to create a script that generates an email every time certain things appear in the logs of our CCRs. We’ve had issues with Brute Force attempts so I want to monitor the logs for keywords like “login failure” I’d also like to monitor the logs for any changes made to the unit ie “changed by”, if the script does find these keywords in the logs it generates an email.
I tried using the script found here, but it’s not sending the emails to me for some reason.
This page assume that you have setup the email stuff (server/port/username/password) etc. How should it know where to send the email else.
See here:https://wiki.mikrotik.com/wiki/Manual:Tools/email
PS If you do use gmail. you have to open gmail on it side to accept this.
We’ve already got the email settings configured. We have backup_cfg file that is emailed from our devices nightly. They all go to our backup@domain email address. I’ve heard that this script no longer works with later firmware?. I’m unsure if anyone has it running on 6.42 or later.
Not sure what else I may be doing wrong, I’ve included a few screen shots for good measure.