Commit graph

384 commits

Author SHA1 Message Date
Christian Hesse 59f8f30389 doc/mod/notification-telegram: end all commands with a semicolon 2023-11-09 15:34:10 +01:00
Christian Hesse 255fc531ad doc/mod/notification-ntfy: end all commands with a semicolon 2023-11-09 15:34:10 +01:00
Christian Hesse 2acc0aba7e doc/mod/notification-matrix: end all commands with a semicolon 2023-11-09 15:34:10 +01:00
Christian Hesse 0f3746c894 doc/mod/notification-email: end all commands with a semicolon 2023-11-09 15:34:10 +01:00
Christian Hesse 3cc41495bc doc/mod/ssh-keys-import: reference stable version 2023-11-09 15:34:10 +01:00
Christian Hesse 1265caca60 mod/ssh-keys-import: calculate fingerprint...
... and store it in key-owner, which is descriptive only.

This requires RouterOS 7.12beta1 for the 'transform' property
for ':convert' command.
2023-11-09 15:08:36 +01:00
Christian Hesse ff35f0c87f check-health: reverse logic for RAM (free -> utilization)...
... to bring it in sync with CPU utilization.

Also make the output more verbose, at least for the warning.

---- ✂️ ----
🗃️📈️ Health warning: RAM utilization

The RAM utilization on MikroTik is at 81%!

total:          64 MiB
used:           52 MiB
free:           11 MiB
---- ✂️ ----
🗃️📉️ Health recovery: RAM utilization

The RAM utilization on MikroTik decreased to 65%.
---- ✂️ ----
2023-10-24 17:03:12 +02:00
Christian Hesse 5932586ee4 introduce mod/notification-ntfy...
... for sending notifications via Ntfy (https://ntfy.sh/).

TODO: use proper formatting once supported in Android app:
https://github.com/binwiederhier/ntfy/issues/889
2023-10-17 14:05:03 +02:00
Christian Hesse 5fbf584d4c sms-forward: pass phone number and message to hook
These are available as $Phone and $Message in hook.
2023-10-17 14:05:03 +02:00
Christian Hesse c9233773b3 telegram-chat: do not act on foreign reply...
... even if active!
2023-10-16 15:27:14 +02:00
Christian Hesse 1b62545d8c telegram-chat: answer question mark with short notice 2023-10-16 15:27:14 +02:00
Christian Hesse 399d952ac2 telegram-chat: act on reply from self 2023-10-16 13:11:20 +02:00
Christian Hesse fd1263324d doc/telegram-chat: update screenshots 2023-10-16 13:11:20 +02:00
Christian Hesse 5d80b63f36 doc/packages-update: mention and link all backup scripts 2023-09-13 16:08:59 +02:00
Christian Hesse 7b47ed7ea5 check-routeros-update: support update from specific neighbor(s)
... by matching the identity property.
2023-08-31 09:40:09 +02:00
Christian Hesse ad6825571d mod/ssh-keys-import: support ed25519 keys...
... with RouterOS 7.12beta1
2023-08-18 15:23:20 +02:00
Christian Hesse 413be6f504 doc/mod/ssh-keys-import: drop duplicate key type
Stupid copy'n'paste error... 🫣
2023-08-18 15:23:20 +02:00
Christian Hesse 25d40688f7 sms-forward: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse c04bf2c9b7 netwatch-notify: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse ddd5608b38 mod/ssh-keys-import: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse 6552b0c02d hotspot-to-wpa: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 8ce1683733 daily-psk: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 6d76704a97 dhcp-lease-comment: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse bac4a460f0 collect-wireless-mac: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse d086e4a05f accesslist-duplicates: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse d0ab951e3f capsman-download-packages: download a default set for wifiwave2
Well, AX devices can be arm or arm64... So let's just download packages
'routeros' and 'wifiwave2' - crossing fingers... 🤞
2023-08-09 16:30:18 +02:00
Christian Hesse 3cab917a61 capsman-download-packages: no download of missing package for wifiwave2
Sadly the log messages from wifiwave2 do not contain any hint what is
missing... So it's not possible to download missing files.
2023-08-09 16:30:18 +02:00
Christian Hesse e6964b4348 capsman-rolling-upgrade: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 5e3d9d7460 capsman-download-packages: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse c37739c2f6 mod/notification-telegram: introduce $PurgeTelegramQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 0aeb34e5e9 mod/notification-matrix: introduce $PurgeMatrixQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 9a5d55da0d mod/notification-email: introduce $PurgeEmailQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 6247b739a1 netwatch-notify: drop the delay on startup...
... now that in RouterOS 7.9 netwatch itself comes with a startup-delay.
Hosts in state 'unknown' are just ignored.
2023-06-28 11:29:02 +02:00
Christian Hesse 64ab9eec67 hotspot-to-wpa-cleanup: drop hard-coded timeout, get from comment
This keeps the default of four weeks, though.
2023-06-28 11:26:51 +02:00
Christian Hesse 16a551a0ee hotspot-to-wpa-cleanup: drop hard-coded server name, find by comment 2023-06-28 11:26:51 +02:00
Christian Hesse f8a2b88692 hotspot-to-wpa: support non-local users
This has some limitations, though: The password is not known and
additional configuration can not be given in user's comment.
2023-06-28 11:04:13 +02:00
Christian Hesse 5ba34c819a doc/sms-forward: link the RouterOS button to changelog 2023-06-27 17:27:13 +02:00
Christian Hesse edbb52d4e7 doc/mod/ssh-keys-import: link the RouterOS button to changelog 2023-06-27 17:27:13 +02:00
Christian Hesse 458fe7c088 fw-addr-lists: prepare lists from spamhaus.org in config 2023-06-13 20:26:55 +02:00
Christian Hesse 53ad7b717d fw-addr-lists: add lists from abuse.ch in config 2023-06-13 20:26:55 +02:00
Christian Hesse e19e33d0a8 introduce fw-addr-lists 2023-06-13 20:26:55 +02:00
Christian Hesse 9a1f2deb57 doc/mod/notification-telegram: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 9ebebcfa52 doc/mod/notification-matrix: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 9ac7cf5fc0 doc/mod/notification-email: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse a0dc721ea3 doc/mod/scriptrunonce: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse c8497d05c5 doc/telegram-chat: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 5c27024bc6 doc/sms-forward: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse b93126bc46 doc/sms-action: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 3fafed250e doc/mode-button: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 601404a5db doc/log-forward: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 4ab1a88a92 doc/ipsec-to-dns: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 8fa04fec15 doc/gps-track: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse a77e0bf0d5 doc/dhcp-to-dns: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 87318fddde doc/daily-psk: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse dea07a7f0b doc/check-routeros-update: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse d4e225f1b7 doc/check-health: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 2ba93f61ac doc/check-certificates: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse e96b2e4853 doc/certificate-renew-issued: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse a65ea3fc26 doc/backup-upload: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 083fa82b13 doc/backup-email: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse 5f28e928a1 doc/backup-cloud: hint to copy from global-config 2023-06-11 22:45:29 +02:00
Christian Hesse de8c534d41 doc/daily-psk: rename schedulers...
... to match other scripts.
2023-06-01 09:53:33 +02:00
Christian Hesse 95181fbef9 doc/check-certificates: move and rename schedule at startup 2023-06-01 09:53:33 +02:00
Christian Hesse cfeddde173 doc/check-routeros-update: hint on schedule at startup 2023-06-01 09:53:33 +02:00
Christian Hesse 80198dcfb5 doc/mod/notification-telegram: show how to set bot's profile photo 2023-05-25 10:39:16 +02:00
Christian Hesse e9b7c7f7ed doc/mod/notification-telegram: describe how to declare functions...
... to use them in own scripts.
2023-05-22 09:52:34 +02:00
Christian Hesse c0aeee3d3e doc/mod/notification-matrix: describe how to declare functions...
... to use them in own scripts.
2023-05-22 09:52:18 +02:00
Christian Hesse 8284035ad8 doc/mod/notification-email: describe how to declare functions...
... to use them in own scripts.
2023-05-22 09:51:23 +02:00
Christian Hesse 1f1e76b822 sms-forward: drop workaround, add required RouterOS 2023-04-26 10:31:23 +02:00
Christian Hesse c8500dddd0 mod/ssh-keys-import: make ssh-keys-import a module 2023-04-26 10:31:23 +02:00
Christian Hesse ee94024dca dhcp-to-dns: get domain from dhcp server's network definition 2023-04-24 22:26:26 +02:00
Christian Hesse 9617095022 check-certificates: try all SANs for download 2023-04-07 23:36:09 +02:00
Christian Hesse 4073daa139 check-certificates: include SANs in information 2023-04-07 22:53:33 +02:00
Christian Hesse 68364d4a50 doc/check-health: use an unusual interval 2023-03-31 17:45:55 +02:00
Christian Hesse d700dbc00e dhcp-to-dns: support host name from dhcp lease comment
The lease comment is supposed to be a human readable string... But we
could allow parsable information.
2023-03-28 12:05:47 +02:00
Christian Hesse b22a84ed0f doc/dhcp-to-dns: mention A record and optional CNAME record 2023-03-28 11:42:58 +02:00
Christian Hesse b66364d716 doc/netwatch-notify: prevent escaping code in hook by creating a script 2023-03-20 13:32:39 +01:00
Christian Hesse f7962f5d79 doc/netwatch-notify: move hint on notification settings up 2023-03-20 12:35:34 +01:00
Christian Hesse 650c362ed9 netwatch-notify: support note in notification 2023-03-20 12:35:34 +01:00
Christian Hesse a832fd04ef rename scripts and add file extension ".rsc"
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00
Christian Hesse 4ca8f83a52 ... and update the logo in notifications 2023-03-06 21:07:58 +01:00
Christian Hesse d2d913ec19 check-routeros-update: allow to install all updates automatically...
... but with extra hurdle for more awareness of danger.

Let's not send a new notification, intentionally. This feature is
dangerous, and we should not advertise it.
2023-03-06 21:06:48 +01:00
Christian Hesse a9741336b8 doc/check-routeros-update: update wording and details 2023-03-03 14:08:48 +01:00
Christian Hesse c48509683c check-health: wording: load -> utilization
The load is defined as something different...

https://en.wikipedia.org/wiki/Load_(computing)

So let's update the wording and use 'utilization' instead.

---- ✂️ ----
🧮📈️ Health warning: CPU utilization

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

The average CPU utilization on MikroTik decreased to 64%.
---- ✂️ ----
2023-02-14 20:24:06 +01:00
Christian Hesse e50e25c638 doc/check-health: make the voltage limit a separate point 2023-02-13 21:10:35 +01:00
Christian Hesse b6d2cb44c1 doc/check-health: add line break between screenshots 2023-02-13 21:10:35 +01:00
Christian Hesse 62707dc549 ipv6-update: support host addresses in address-list 2023-02-10 11:36:12 +01:00
Christian Hesse 15fc0b91e9 doc/backup-upload: new option $BackupSendGlobalConfig 2023-02-08 09:44:52 +01:00
Christian Hesse f2f7d66b2d doc/backup-email: new option $BackupSendGlobalConfig 2023-02-08 09:44:21 +01:00
Christian Hesse 08383daa5c telegram-chat: always reply to origin chat 2023-02-02 10:06:42 +01:00
Christian Hesse bf1af61d2d doc/telegram-chat: give an example on how to work around command runtime 2023-02-01 17:28:45 +01:00
Christian Hesse 049a029170 doc/telegram-chat: add hint on output size 2023-02-01 14:30:52 +01:00
Christian Hesse 7e7987afec doc/telegram-chat: add hint on command runtime 2023-02-01 11:29:56 +01:00
Christian Hesse 8f47bc9836 doc/telegram-chat: warn about changing group id 2023-02-01 11:29:51 +01:00
Christian Hesse 8b488cb82f doc/telegram-chat: allow bots to receive messages in a group 2023-01-31 18:11:22 +01:00
Christian Hesse cbc547332e check-routeros-update: drop check for cap
This becomes complicated with legacy wireless and wifiwave2 package, old
and new CAPsMAN. Let's just drop the check.
2023-01-31 17:27:15 +01:00
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 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 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