Skip to content

Commit eccc187

Browse files
committed
introduce 'mod/notification-email', split off from global-functions
1 parent 562c565 commit eccc187

20 files changed

+240
-151
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ Available modules
218218
* [Manage VLANs on bridge ports](doc/mod/bridge-port-vlan.md)
219219
* [Inspect variables](doc/mod/inspectvar.md)
220220
* [IP address calculation](doc/mod/ipcalc.md)
221+
* [Send notifications via e-mail](doc/mod/notification-email.md)
221222
* [Send notifications via Matrix](doc/mod/notification-matrix.md)
222223
* [Send notifications via Telegram](doc/mod/notification-telegram.md)
223224
* [Download script and run it once](doc/mod/scriptrunonce.md)

doc/backup-cloud.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ The configuration goes to `global-config-overlay`, these are the parameters:
3636
* `BackupPassword`: password to encrypt the backup with
3737
* `BackupRandomDelay`: delay up to amount of seconds when run from scheduler
3838

39-
Also notification settings are required for e-mail,
39+
Also notification settings are required for
40+
[e-mail](mod/notification-email.md),
4041
[matrix](mod/notification-matrix.md) and/or
4142
[telegram](mod/notification-telegram.md).
4243

doc/backup-email.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ configuration export (`/export terse show-sensitive`) via e-mail.
1515
Requirements and installation
1616
-----------------------------
1717

18-
Just install the script:
18+
Just install the script and the required module:
1919

20-
$ScriptInstallUpdate backup-email;
20+
$ScriptInstallUpdate mod/notification-email,backup-email;
21+
22+
Also make sure you configure
23+
[sending notifications via e-mail](mod/notification-email.md).
2124

2225
Configuration
2326
-------------
@@ -29,8 +32,6 @@ The configuration goes to `global-config-overlay`, these are the parameters:
2932
* `BackupPassword`: password to encrypt the backup with
3033
* `BackupRandomDelay`: delay up to amount of seconds when run from scheduler
3134

32-
Also valid e-mail settings are required to send mails.
33-
3435
Usage and invocation
3536
--------------------
3637

@@ -47,6 +48,7 @@ See also
4748

4849
* [Upload backup to Mikrotik cloud](backup-cloud.md)
4950
* [Save configuration to fallback partition](doc/backup-partition.md)
51+
* [Send notifications via e-mail](mod/notification-email.md)
5052
* [Upload backup to server](backup-upload.md)
5153

5254
---

doc/backup-upload.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ The configuration goes to `global-config-overlay`, these are the parameters:
4141
* `BackupUploadUser`: username for server authentication
4242
* `BackupUploadPass`: password for server authentication
4343

44-
Also notification settings are required for e-mail,
44+
Also notification settings are required for
45+
[e-mail](mod/notification-email.md),
4546
[matrix](mod/notification-matrix.md) and/or
4647
[telegram](mod/notification-telegram.md).
4748

doc/check-certificates.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ Just install the script:
2626
Configuration
2727
-------------
2828

29-
The expiry notifications just require notification settings for e-mail,
30-
[matrix](mod/notification-matrix.md) and/or
31-
[telegram](mod/notification-telegram.md).
32-
3329
For automatic download and renewal of certificates you need configuration
3430
in `global-config-overlay`, these are the parameters:
3531

@@ -39,6 +35,11 @@ in `global-config-overlay`, these are the parameters:
3935
Certificates on the web server should be named `CN.pem` (`PEM` format) or
4036
`CN.p12` (`PKCS#12` format).
4137

38+
Also notification settings are required for
39+
[e-mail](mod/notification-email.md),
40+
[matrix](mod/notification-matrix.md) and/or
41+
[telegram](mod/notification-telegram.md).
42+
4243
Usage and invocation
4344
--------------------
4445

doc/check-health.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ The configuration goes to `global-config-overlay`, these are the parameters:
5656
* `CheckHealthVoltageLow`: value (in volt*10) giving a hard lower limit
5757
* `CheckHealthVoltagePercent`: percentage value to trigger voltage jumps
5858

59-
Also notification settings are required for e-mail,
59+
Also notification settings are required for
60+
[e-mail](mod/notification-email.md),
6061
[matrix](mod/notification-matrix.md) and/or
6162
[telegram](mod/notification-telegram.md).
6263

doc/check-lte-firmware-upgrade.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Just install the script:
3535
Configuration
3636
-------------
3737

38-
Notification setting are required for e-mail,
38+
Also notification settings are required for
39+
[e-mail](mod/notification-email.md),
3940
[matrix](mod/notification-matrix.md) and/or
4041
[telegram](mod/notification-telegram.md).
4142

doc/check-routeros-update.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ safe versions from a web server. The configuration goes to
5656
* `SafeUpdateUrl`: url to check for safe update, the channel (`long-term`,
5757
`stable` or `testing`) is appended
5858

59-
Also notification settings are required for e-mail,
59+
Also notification settings are required for
60+
[e-mail](mod/notification-email.md),
6061
[matrix](mod/notification-matrix.md) and/or
6162
[telegram](mod/notification-telegram.md).
6263

doc/collect-wireless-mac.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ On first run a disabled access list entry acting as marker (with comment
4040
"`--- collected above ---`") is added. Move this entry to define where new
4141
entries are to be added.
4242

43-
Also notification settings are required for e-mail,
43+
Also notification settings are required for
44+
[e-mail](mod/notification-email.md),
4445
[matrix](mod/notification-matrix.md) and/or
4546
[telegram](mod/notification-telegram.md).
4647

doc/daily-psk.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Then add an access list entry:
5151

5252
/interface/wireless/access-list/add comment="Daily PSK" interface=wl-daily private-pre-shared-key="ToBeChangedDaily";
5353

54-
Also notification settings are required for e-mail,
54+
Also notification settings are required for
55+
[e-mail](mod/notification-email.md),
5556
[matrix](mod/notification-matrix.md) and/or
5657
[telegram](mod/notification-telegram.md).
5758

0 commit comments

Comments
 (0)