Skip to content

Hackitect7/routeros-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ MikroTik RouterOS Scripts Collection

A structured and modular collection of MikroTik RouterOS scripts and functions for automation, logging, email notifications, and network management.


πŸ“ Contents

The repository is organized into logical groups of scripts and reusable functions.

Each group folder contains its own README.md with detailed descriptions and setup instructions for included scripts.


πŸ”§ Scripts

Automation scripts for monitoring, notifications, and other system tasks.

Script Description
NotifyUserLoginAttempts Monitors RouterOS logs for user login/logout events (account topic) and sends an email alert when new entries are detected. Designed to run periodically via the scheduler.
CPUOverloadCheck Measures CPU load multiple times, calculates average usage, and sends an email alert if the load exceeds a defined threshold. Runs via scheduled tasks.
CheckChangeExternalAddress Monitors the router's external IP address using ipify.org. Sends an email alert if the external IP has changed since the last check.

🧩 Functions

Reusable functions designed to be called from other scripts (e.g. email sending, parsing, etc).

Function Description
SendEmailFunction General-purpose SMTP email sender. Called from other scripts to send notifications via external mail servers (supports TLS, attachments, and app passwords). Not intended to be run directly.

πŸ“„ License

This project is released under the MIT License.


πŸ‘€ Author

Hackitect7
GitHub Profile


πŸ™Œ Contributions

Suggestions, improvements, and PRs are welcome.
Feel free to fork this project and adapt it for your own use.

Releases

No releases published

Packages

No packages published