Commit graph

1630 commits

Author SHA1 Message Date
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 3b5026ea8d drop dummy scripts used for migration
This now causes expected warnings on first run of $ScriptInstallUpdate.
The migration still works, as we keep `global-config.changes` and
`global-functions`.
2023-03-10 09:58:01 +01:00
Christian Hesse 56ae457d77 global-functions: $ScriptInstallUpdate: add proper version in user agent
This allows me to identify what RouterOS versions are run on devices
fetching my scripts, which may helps to decide what incompatible changes
to push.
2023-03-10 09:46:16 +01:00
Christian Hesse 7912091f63 lease-script: make sure not to match self 2023-03-07 22:26:01 +01:00
Christian Hesse e902e3fdd5 global-functions: $ScriptInstallUpdate: make sure not to match self 2023-03-07 22:26:01 +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 1e6e0646e2 add the notification generator 2023-03-06 21:07:58 +01:00
Christian Hesse 4ca8f83a52 ... and update the logo in notifications 2023-03-06 21:07:58 +01:00
Christian Hesse 154a036c64 use a new logo 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 b0595e53a5 global-functions: $MkDir: drop the compatibility workaround
If you are still running RouterOS 7.6 or older add this in your
global-config-overlay:

    :global ScriptUpdatesUrlSuffix "\?h=routeros-7.7~1";

... and remeber to revert that change once updated.
2023-02-26 22:27:14 +01:00
Christian Hesse bfd1361f71 telegram-chat: get the uptime just once 2023-02-26 22:19:36 +01:00
Christian Hesse 02b447212d telegram-chat: ignore new messages after reboot
This script supports multiple devices, and sending offset to discard
messages is delayed to third fetch to make sure all devices get the
message.

This can cause trouble, though: Sending a device a reboot command can
make that device reboot multiple times 🥴 or - even worse - make it
enter an infinite boot loop 😳 if it is the only device.

So let's ignore first messages after reboot.
2023-02-26 22:19:36 +01:00
Christian Hesse 5ea892662f telegram-chat: send messages in reply 2023-02-26 22:19:30 +01:00
Christian Hesse b963761874 mod/notification-telegram: support sending in reply 2023-02-24 12:13:44 +01:00
Christian Hesse 8213c5ed61 netwatch-notify: support sending silent notifications 2023-02-24 12:13:35 +01:00
Christian Hesse fe0460ef6d INITIAL-COMMANDS: link to new paragraphs 2023-02-17 12:27:47 +01:00
Christian Hesse da46c42d4a README: add a paragraph for scheduled automatic updates 2023-02-17 12:23:05 +01:00
Christian Hesse c247fe5a96 README: move configuration down, make it a separate paragraph 2023-02-17 08:05:15 +01:00
Christian Hesse 49e89070a1 packages-update: put reboot into a function
Make the logic even simpler... Let's put the reboot code into a
function. That is volatile, so device does not reboot if it is
rebooted already.
2023-02-16 12:03:46 +01:00
Christian Hesse 7c2ac135e3 packages-update: check version before reboot from scheduler
Chances are that the device was rebooted manually... Do not reboot then.
2023-02-16 11:53:05 +01:00
Christian Hesse 95b8a47b81 telegram-chat: log command with failed syntax validation 2023-02-14 23:01:24 +01:00
Christian Hesse f1ad240e59 telegram-chat: never decrease the local offset 2023-02-14 23:01:24 +01:00
Christian Hesse 77d26e02d4 telegram-chat: add debug message for handled updates 2023-02-14 23:01:16 +01:00
Christian Hesse 2a7576f4e4 telegram-chat: add updateid in log messages 2023-02-14 21:28:15 +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 ad75d6e031 README: give hint about converting line endings 2023-02-13 21:10:35 +01:00
Christian Hesse f5d872a990 global-functions: $PrettyPrint: use $Unix2Dos 2023-02-13 10:36:56 +01:00
Christian Hesse d54c46ab98 global-functions: introduce $Dos2Unix 2023-02-13 10:36:56 +01:00
Christian Hesse 7d3c4738d0 global-functions: introduce $Unix2Dos 2023-02-13 10:35:27 +01:00
Christian Hesse 62707dc549 ipv6-update: support host addresses in address-list 2023-02-10 11:36:12 +01:00
Christian Hesse a34d5d7141 ipv6-update: accept a single prefix only 2023-02-09 22:43:09 +01:00
Christian Hesse 769edbcf61 ipv6-update: rename variable 2023-02-09 22:42:36 +01:00
Christian Hesse c6245b3125 ipv6-update: use identical parameters to find address 2023-02-09 22:10:48 +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 818638d0f4 backup-upload: use :use inside :execute for global-config-overlay 2023-02-08 09:14:02 +01:00
Christian Hesse b9eaab8e77 backup-email: use :use inside :execute for global-config-overlay
This will add carriage return and line feed, but works around the
limitation of reading just four kilobytes from file.
2023-02-08 09:14:02 +01:00
Christian Hesse d63db7ea95 global-functions: $ScriptInstallUpdate: use complete property name 2023-02-07 21:20:49 +01:00
Christian Hesse 58a6fac3d9 telegram-chat: use complete property name 2023-02-07 21:19:57 +01:00
Christian Hesse aee42d31e1 Merge branch 'backup-g-c-o' into next 2023-02-07 21:19:57 +01:00
Christian Hesse ba730708f5 notify about backup for global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse 5d263ca11e backup-upload: support uploading global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse 0527503c8e backup-email: support sending global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse 48bf54644a global-config: new option to backup global-config-overlay 2023-02-07 20:24:50 +01:00
Christian Hesse 9c066599e8 telegram-chat: handle exceeded file read size 2023-02-04 23:24:44 +01:00