Commit graph

1706 commits

Author SHA1 Message Date
Christian Hesse 819c7294c6 introduce telegram-chat
Druvis from Mikrotik produced a video "MikroTik Telegram bot - Chat with
your Router?". He shows his script to chat with a Router via Telegram
bot to send it commands: https://youtu.be/KLX6j3sLRIE

This script is kind of limited and has several issues... 🥴

Let's make it robust, usable, multi-device capable and just fun! 😁

(Sadly Mikrotik has a policy to not allow links in Youtube comments.
Thus my comment with several hints was removed immediately. If anybody
is in contact with Druvis... Please tell him about this script!)
2023-01-31 17:26:51 +01:00
Christian Hesse f666d2f8ff global-functions: $WaitForFile: allow to give iterations...
... to increase timeout. Every iteration is about 100ms.
2023-01-31 15:18:17 +01:00
Christian Hesse f62328ee8d check-certificates: handle decryption failures and warn
If a download succeeds at least one of the given passphrases is
expected to decrypt a key in the file.
2023-01-26 21:35:35 +01:00
Christian Hesse b0d3e3d5f4 global-functions: $LogPrintExit2: always print the message...
... even on error. Not sure why and when this broke.
2023-01-26 21:04:59 +01:00
Christian Hesse 5c3585cd98 update list of contributors 2023-01-24 13:18:17 +01:00
Christian Hesse 555d0e8bfc check-certificates: make the warning time configurable 2023-01-23 17:46:03 +01:00
Christian Hesse 36a8938dea doc/check-certificates: document the renew time 2023-01-23 17:45:22 +01:00
Christian Hesse f9839647d4 global-functions: $MkDir: catch error on creating tmpfs 2023-01-23 16:21:30 +01:00
Christian Hesse c8dcd92e6b global-functions: $MkDir: create with reasonable tmpfs-max-size
Giving no tmpfs-max-size breaks with RouterOS 7.8beta2, where a size
limit is enforced.
2023-01-23 16:21:02 +01:00
Christian Hesse c7498c6397 daily-psk: fixes for CAPsMAN 2023-01-22 12:16:06 +01:00
Christian Hesse e6c256cd4b check-health: notify about new features 2023-01-20 23:20:53 +01:00
Christian Hesse e9a426a798 check-health: silently exit without health readings...
... but after checking CPU load and free RAM.
2023-01-20 23:20:53 +01:00
Christian Hesse 6780e1a24c check-health: monitor free RAM
---- ✂️ ----
🗃️📉️ Health warning: free RAM

The available free RAM on MikroTik is at 18% (47MiB)!
---- ✂️ ----
🗃️📈️ Health recovery: free RAM

The available free RAM on MikroTik increased to 65% (168MiB).
---- ✂️ ----
2023-01-20 23:20:53 +01:00
Christian Hesse 75bd14267e check-health: monitor CPU load
---- ✂️ ----
🧮📈️ Health warning: CPU load

The average CPU load on MikroTik is at 76%!
---- ✂️ ----
🧮📉️ Health recovery: CPU load

The average CPU load on MikroTik decreased to 64%.
---- ✂️ ----
2023-01-20 23:13:27 +01:00
Christian Hesse 2694f8d2b1 global-functions: $RequiredRouterOS: check for valid version string 2023-01-20 11:26:53 +01:00
Christian Hesse 9033e16921 global-functions: use new functionality for version check 2023-01-20 11:26:53 +01:00
Christian Hesse de9dde1b14 global-functions: $ScriptInstallUpdate: add a version check for scripts
New RouterOS releases bring new features, and thus new syntax.
Installing a new script on old RouterOS results in syntax errors. We
want to give clear warning messages, so by adding an extra comment into
the script...

    # requires RouterOS, version=7.8beta3

... installing on unsupported RouterOS version is mitigated.
2023-01-20 11:26:53 +01:00
Christian Hesse 9887ab0849 lease-script: use $Grep 2023-01-20 11:26:53 +01:00
Christian Hesse b834517baa global-functions: implement $Grep...
... that returns the first line that matches a pattern.
2023-01-20 11:26:53 +01:00
Christian Hesse 072d349473 log-forward: cache the result of $LogForwardFilterLogForwarding
Looks like the function is called for every message to match otherwise. 😳
2023-01-20 11:26:53 +01:00
Christian Hesse 2294ac77a8 doc/log-forward: add tips and tricks 2023-01-20 00:34:27 +01:00
Christian Hesse cfb31e840c doc/log-forward: add some more details 2023-01-18 11:53:57 +01:00
Christian Hesse 03fb459ea4 ipsec-to-dns: handle "CN=" from peer's id
This was missing in commit bff6689b10 and
cause the dns entry to be delete and re-created over and over again.
2023-01-17 12:34:05 +01:00
Christian Hesse 23e5c01a42 global-functions: $MkDir: no early continue for dir "tmpfs"...
... as we want a RAM disk.
2023-01-12 23:43:38 +01:00
Christian Hesse aabc6b22fe doc/daily-psk: drop the start-date from scheduler 2023-01-12 23:28:37 +01:00
Christian Hesse ab306ad3c7 doc/daily-psk: add missing bits for CAPsMAN 2023-01-12 23:26:23 +01:00
Christian Hesse f67dc0218b global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
2023-01-12 15:40:05 +01:00
Christian Hesse 47a657d25c mod/notification-*: support extra text (or emojis 🚀) in notification tags 2023-01-12 15:40:05 +01:00
Christian Hesse c8e22f33c2 mod/notification-email: split off generation of subject 2023-01-11 12:28:31 +01:00
Christian Hesse a953a8fa59 mod/notification-email: move $QuotedPrintable (from global-functions)
This is used for e-mail only...
2023-01-11 12:28:31 +01:00
Christian Hesse 329bef94df log-forward: do not declare unused function 2023-01-11 12:28:31 +01:00
Christian Hesse 868557a24a log-forward: generate filter in mod/notification-email 2023-01-11 12:28:31 +01:00
Christian Hesse 34ed387343 use arrows with emoji representation
We had...

  ◀ Go back to main README
  ▲ Go back to top

... and switch to...

  ⬅️ Go back to main README
  ⬆️ Go back to top
2023-01-11 12:28:31 +01:00
Christian Hesse a38272e15e README: install custom script from routeros-scripts-custom 2023-01-11 12:28:31 +01:00
Christian Hesse f211a8d099 README: add linked custom scripts & modules 2023-01-10 21:21:58 +01:00
Christian Hesse 80671e3803 doc/sms-forward: take care of harmful commands in hooks 2023-01-10 08:58:33 +01:00
Christian Hesse 1ea613e8a0 update list of contributors 2023-01-10 08:58:33 +01:00
Anatoly Bubenkov ea09a18d3f sms-forward: support hooks 2023-01-10 08:58:33 +01:00
Christian Hesse 88b34cfb39 doc/sms-forward: reorder configuration 2023-01-09 15:35:57 +01:00
Anatoly Bubenkov 03ca9464df .gitignore: ignore folder settings file 2023-01-02 23:49:26 +01:00
Christian Hesse 84be9123ef .gitignore: ignore files created by patch command 2023-01-02 23:49:26 +01:00
Christian Hesse b730264d80 .gitignore: add comments 2023-01-02 23:49:26 +01:00
Christian Hesse d1caf2bf10 backup-upload: keep floppy emoji for failure 2023-01-02 23:49:26 +01:00
Christian Hesse 4f931db1c3 backup-cloud: keep floppy emoji for failure 2023-01-02 23:49:26 +01:00
Christian Hesse 2f774f723d update copyright for 2023 2023-01-02 23:49:26 +01:00
Christian Hesse 9983a69188 README: RouterOS v7 path syntax
Missed one in b6ddc5968e7a3393bb6e9b0c0ccf96379efc62b4...
2022-12-19 09:49:45 +01:00
Christian Hesse a3e2822a0a backup-upload: switch path to tmpfs 2022-12-13 21:50:32 +01:00
Christian Hesse d3351bcf18 backup-email: switch path to tmpfs 2022-12-13 21:50:32 +01:00
Christian Hesse f8258b90a7 backup-upload: create directory later 2022-12-13 21:50:32 +01:00
Christian Hesse 8b2571dc49 backup-email: create directory later 2022-12-13 21:50:32 +01:00