Commit graph

1431 commits

Author SHA1 Message Date
Christian Hesse
da87761220 Merge branch 'notifications' into next 2021-04-28 20:16:08 +02:00
Christian Hesse
56b7523775 global-functions: notify about settings override 2021-04-28 15:33:37 +02:00
Christian Hesse
b497edd092 global-config: comment on overriding e-mail and Telegram settings 2021-04-28 15:11:08 +02:00
Christian Hesse
9fc75f5932 upload-backup: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
0d249d6da4 sms-forward: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
e6223a3661 netwatch-notify: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
87cbc1edad log-forward: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
fe9754c693 daily-psk: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
714a679402 collect-wireless-mac: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
a9b932d67e cloud-backup: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
8e1c524b85 check-routeros-update: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
fbe4c457c6 check-lte-firmware-upgrade: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
baed8b5cfd check-health: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
ebd3dbedcb check-certificates: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
c640823881 global-functions: $ScriptInstallUpdate: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
2d0ce17629 global-functions: $SendTelegram2: support overriding token id and chat id 2021-04-28 13:58:37 +02:00
Christian Hesse
bd05ca1133 global-functions: $SendTelegram2: store token id in queue 2021-04-28 13:58:37 +02:00
Christian Hesse
42dcdae11e global-functions: $SendEMail2: support overriding to and cc 2021-04-28 13:58:37 +02:00
Christian Hesse
e97b394536 global-functions: introduce $EitherOr 2021-04-28 13:58:37 +02:00
Christian Hesse
66a92c3da9 upload-backup: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
123fe01115 sms-forward: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
557016387c netwatch-notify: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
81f84353cd log-forward: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
354aedd98e daily-psk: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
1ca3e8b59f collect-wireless-mac: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
d6edf6c2d3 cloud-backup: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
19ca17190d check-routeros-update: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
4fe11fadee check-lte-firmware-upgrade: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
bf315c15f6 check-health: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
71976f2eb9 check-certificates: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
76f32e3927 global-functions: $ScriptInstallUpdate: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
c7a2eecd3c global-functions: introduce $SendEMail2, $SendNotification2 & $SendTelegram2
These accept just one array as argument. Adding new features is possible
without breaking the API.

These calls are the same for now:

$SendNotification "Subject..." "Message...";
$SendNotification2 ({ subject="Subject..."; message="Message..." });

But the latter will bring more features in future.
2021-04-28 13:58:37 +02:00
Christian Hesse
d4c9d1c577 README: add logo 2021-04-28 13:58:14 +02:00
Christian Hesse
99f828e7c0 add logo
This should be displayed by Gitlab now...
Also it is the logo we use for the Telegram group.
2021-04-28 12:05:04 +02:00
Christian Hesse
a90511cff9 check-routeros-update: be verbose when run from terminal only 2021-04-27 08:57:05 +02:00
Christian Hesse
96613e9bdd global-functions: $LogPrintExit: add deprecation warning 2021-04-26 16:40:02 +02:00
Christian Hesse
625d1dda12 check-routeros-update: silence check-for-updates, but be more verbose 2021-04-26 16:33:41 +02:00
Christian Hesse
7fee37f57e update list of contributors 2021-04-12 23:40:17 +02:00
Christian Hesse
025f14ae13 global-functions: CertificateDownload: silence certificate import 2021-03-21 22:28:09 +01:00
Christian Hesse
b55cdfb566 check-certificates: silence certificate import 2021-03-21 22:27:31 +01:00
Christian Hesse
f77213c6d0 check-certificates: be more verbose when attempting to renew 2021-03-21 22:22:52 +01:00
Christian Hesse
5610926d0a log-forward: use $EscapeForRegEx 2021-03-17 08:55:33 +01:00
Christian Hesse
7c4ab95394 global-functions: introduce $EscapeForRegEx 2021-03-17 08:51:23 +01:00
Christian Hesse
baa096fe03 log-forward: filter e-mail error on log forwarding in script...
... and update the filter in global configuration.
2021-03-15 12:40:14 +01:00
Christian Hesse
d00f18dc8c log-forward: update filter to match mail with quoted-printable encoding 2021-03-11 21:21:40 +01:00
Christian Hesse
4472784274 global-functions: $CertificateAvailable: use pre-test loop
This is required to test for root CA (without intermediate) directly.
2021-03-10 23:16:39 +01:00
Christian Hesse
b1647c760c log-forward: list messages with 'black circle' 2021-03-04 18:47:55 +01:00
Christian Hesse
f762d395eb log-forward: skip multi-repeated messages 2021-03-04 18:44:34 +01:00
Christian Hesse
d1741c99fe global-functions: $ScriptInstallUpdate: run migration unconditionally
We want the migration to run even if the notification is disabled.
2021-03-04 12:13:20 +01:00
Christian Hesse
9ab20bb927 global-config-overlay: remove magic
This allows to drop the ignore flag.
2021-03-04 12:13:20 +01:00