Christian Hesse
ebaa9b617d
update-tunnelbroker: add error handling for fetch command
2022-10-08 22:38:31 +02:00
Christian Hesse
dd22dfd26d
backup-email: check if dependency for sending e-mail is installed
2022-09-29 10:31:54 +02:00
Christian Hesse
10182949ea
global-functions: $ScriptInstallUpdate: disable notification only...
...
... if requested, but keep output and logs.
2022-09-28 09:17:32 +02:00
Christian Hesse
b18ca62dbd
global-functions: $ScriptInstallUpdate: drop dead code...
2022-09-28 09:17:12 +02:00
Christian Hesse
5120aa096f
global-functions: $ScriptInstallUpdate: drop code for permission workaround
...
This is no longer used as 'netwatch-syslog' is gone.
2022-09-25 22:18:44 +02:00
Christian Hesse
10bf3c758f
drop 'learn-mac-based-vlan' and 'manage-umts'
...
This was undocumented and scripts did never catch up with general
quality expectations, for example global-config and global functions
were not used.
If you need the code get it from git history. 😜
2022-09-25 22:18:44 +02:00
Christian Hesse
bfe2cbf575
drop 'netwatch-syslog'
...
To filter in firewall you should use something like this:
/ip/firewall/filter/add action=reject chain=output out-interface-list=WAN port=514 protocol=udp reject-with=icmp-admin-prohibited;
/ip/firewall/filter/add action=reject chain=forward out-interface-list=WAN port=514 protocol=udp reject-with=icmp-admin-prohibited;
2022-09-25 22:18:44 +02:00
Christian Hesse
eccc187014
introduce 'mod/notification-email', split off from global-functions
2022-09-25 22:10:05 +02:00
Christian Hesse
562c565fcf
global-functions: $FlushEmailQueue: do not flush if sending
2022-09-25 18:44:14 +02:00
Christian Hesse
a05b8c1881
Makefile: add a clean target
2022-09-25 18:44:14 +02:00
Christian Hesse
fb9aca90f0
unattended-lte-firmware-upgrade: increase delay before extra reset
2022-09-21 16:36:54 +02:00
Christian Hesse
493e4fc8c1
netwatch-notify: use a counter for resolve failures
...
This should relax the error message a bit as it is not triggered
on first failure.
2022-09-20 22:49:04 +02:00
Christian Hesse
84b5e77860
global-functions: $GetMacVendor: detect locally administered addresses
...
https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit)
2022-09-20 09:30:33 +02:00
Christian Hesse
c33e813f20
mod/notification-matrix: $FlushMatrixQueue: use $0 for scheduler name
2022-09-15 22:25:59 +02:00
Christian Hesse
47e4f292cb
mod/notification-telegram: $FlushTelegramQueue: use $0 for scheduler name
2022-09-15 22:25:59 +02:00
Christian Hesse
3f92edb5c1
global-functions: $FlushEmailQueue: use $0 for scheduler name
2022-09-15 22:25:59 +02:00
Christian Hesse
f245751339
global-functions: $FlushEmailQueue: do not flush with resolver issues
...
Flushing the mail queue with resolver issues can flood the log with
messages like:
e-mail;error Error sending e-mail <=?utf-8?Q?[MikroTik] =F0=9F=92=BE=E2=98=81 Cloud backup?=>: DNS resolve failed
Try to avoid this...
2022-09-15 22:03:19 +02:00
Christian Hesse
220dd8f892
netwatch-dns: support downloading / importing certificate
2022-09-13 20:28:52 +02:00
Christian Hesse
3988c70290
doc/netwatch-dns: fix example command...
...
This broke with:
* doc/netwatch-dns: giving hostname in comment is not required
9853943a36
2022-09-13 15:18:28 +02:00
Christian Hesse
e927c6b08b
global-functions: $GetMacVendor: switched to Let's Encrypt (R3)
...
So let's check for the correct one, and drop the other.
2022-09-13 15:18:28 +02:00
Christian Hesse
a1af9577ca
global-functions: $ScriptInstallUpdate: prepare for future certificate chain
2022-09-09 14:02:02 +02:00
Christian Hesse
e228c73984
Merge branch 'netwatch-notify' into next
2022-09-08 09:27:17 +02:00
Christian Hesse
5aff4019fe
netwatch-notify: do not (yet) notify if parent is up recently
...
Monitoring a VPN (or similar) may be tricky: This used to send notifications
if the physical connection recovered, but the VPN and/or its routing did not
yet. Let's work around and send notification only if the parent is up
for at least three checks.
2022-09-07 22:20:52 +02:00
Christian Hesse
a6645b3e75
netwatch-notify: add new array element to count up-checks
2022-09-07 22:02:46 +02:00
Christian Hesse
6f772e92a6
netwatch-notify: rename array element
2022-09-07 21:54:57 +02:00
Christian Hesse
95274e0d23
netwatch-notify: rename variable
2022-09-07 21:54:14 +02:00
Christian Hesse
8f32887a1a
global-functions: introduce $GetRandom20CharAlNum
2022-09-07 12:28:45 +02:00
Christian Hesse
ff0b05ea20
global-functions: $GetRandom20CharHex: add optional parameter for length
2022-09-07 12:22:45 +02:00
Christian Hesse
a7f8aa95d0
netwatch-notify: show dns name (resolve option) in message
2022-09-07 11:21:15 +02:00
Christian Hesse
e820323e78
global-config: add earth symbol in hello-world message for mode button
2022-08-25 12:57:40 +02:00
Christian Hesse
8f7a0c2a06
global-functions: $SymbolByUnicodeName: add 'earth'
2022-08-25 12:51:07 +02:00
Christian Hesse
a7ec92e358
optimize all svg files...
...
... and also update all version numbers to match current release.
2022-08-22 17:16:17 +02:00
Christian Hesse
50a115f23a
cleanup dummy script from rotate-ntp removal
2022-08-19 08:35:52 +02:00
Christian Hesse
c126a5a86b
check-health: increase default temperature deviation
...
Some devices (with bad temperature sensort?) still product a flood of
notifications... Try to avoid that.
2022-08-15 21:31:13 +02:00
Christian Hesse
83372d8b07
logo: optimize the svg file
2022-08-15 17:22:27 +02:00
Christian Hesse
c9a7421d6c
update list of contributors
2022-08-05 22:58:55 +02:00
Michael Gisbers
28be6d097d
global-functions: $GetRandomNumber: use :rndnum
...
This is available in RouterOS 7.x...
Signed-off-by: Christian Hesse <mail@eworm.de>
2022-08-05 22:58:55 +02:00
Michael Gisbers
0562198c55
global-functions: $GetRandom20CharHex: use :rndstr
...
This is available in RouterOS 7.x...
Signed-off-by: Christian Hesse <mail@eworm.de>
2022-08-05 22:58:55 +02:00
Christian Hesse
e31a99a301
unattended-lte-firmware-upgrade: try without extra reset
...
Testing with R11e-LTE6 I can see the interface being reset by the
upgrade. So the extra reset is no longer required? Trying without.
2022-08-05 22:58:54 +02:00
Christian Hesse
50d7e1fa41
check-lte-firmware-upgrade: use $0 for $ScriptFromTerminal
2022-08-04 00:16:35 +02:00
Christian Hesse
50178e2a3c
capsman-download-packages: use proper array syntax
2022-07-21 14:04:44 +02:00
Christian Hesse
82f27268b3
global-functions: $IsTimeSync: cache a positive result
...
The functions do not rely on perfectly synced time. About the right time
is fine, that should make sure certificates are valid and mails are sent
with reasonable headers. So cache the result if system is fine for later
use.
2022-07-21 14:04:44 +02:00
Christian Hesse
329e606b93
global-functions: $IsTimeSync: drop the extra condition...
...
... as ddns is not required to be enabled. The public address is
available anyway, but not set in DNS.
2022-07-21 14:04:44 +02:00
Christian Hesse
ed7b48061a
global-functions: $IsTimeSync: drop old code
...
In RouterOS 7.x the ntp client and server are bundled and unique and
can not be unavailable.
Also it does no longer have a 'last-adjustment' property...
2022-07-21 14:03:11 +02:00
Christian Hesse
518cc24108
global-functions: $IsFullyConnected: remove trailing space
2022-07-21 13:21:51 +02:00
Christian Hesse
ce03f44769
check-routeros-update: use a better check for valid version
...
Currently the latest version in long-term branch is 0.0... And the
script is sending downgrade notifications. 😝
Obviously that is not a valid version... With this changen a version
has to be 7.0 and above to be considered valid.
2022-07-18 23:46:49 +02:00
Christian Hesse
b67b9ec1c1
Merge branch 'empty-array' into next
2022-07-13 11:57:47 +02:00
Christian Hesse
6fa1525700
sms-forward: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:46 +02:00
Christian Hesse
d6337fcc97
netwatch-notify: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:32 +02:00
Christian Hesse
8a85a258fc
netwatch-dns: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:18 +02:00