Compare commits

..

71 commits

Author SHA1 Message Date
Christian Hesse
ce64529c45 netwatch-dns: check with a HTTP/2 request
We need RouterOS 7.24 for this to catch runtime errors for bad
command parameters.

Actually this would work with RouterOS 7.23 on architectures that
support http-version=http2 ...
2026-07-16 13:41:04 +02:00
Christian Hesse
bbb251ade5 Merge branch 'dhcp-to-dns' into next 2026-07-16 13:41:04 +02:00
Christian Hesse
5e3070e36b bump required RouterOS version for all scripts 2026-07-16 13:41:04 +02:00
Christian Hesse
c26c63c390 dhcp-to-dns: allow to ignore for specific lease 2026-07-16 13:41:04 +02:00
Christian Hesse
1abfc59b73 global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-07-16 13:41:04 +02:00
Christian Hesse
d0821113cc update list of contributors 2026-07-16 13:41:04 +02:00
Christian Hesse
d90d8297c9 Merge branch 'break-in-loop' into next 2026-07-16 13:41:04 +02:00
Łukasz Witkowski
0e53aa7f4c dhcp-to-dns: allow to specify domain for CNAMEs...
... in network or lease.

Co-authored-by: Christian Hesse <mail@eworm.de>
2026-07-16 13:41:04 +02:00
Christian Hesse
1a1b936957 Merge branch 'continue-in-loop' into next 2026-07-16 13:41:04 +02:00
Christian Hesse
1a870c3092 telegram-chat: fix indention 2026-07-16 13:41:04 +02:00
Łukasz Witkowski
1245260299 dhcp-to-dns: set $LeaseInfo
Co-authored-by: Christian Hesse <mail@eworm.de>
2026-07-16 13:41:04 +02:00
Christian Hesse
9423d7f1ef Merge branch 'early-exit-with-exit' into next 2026-07-16 13:41:04 +02:00
Christian Hesse
608045ce31 dhcp-to-dns: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
723cacec9f telegram-chat: use :break in loop 2026-07-16 13:41:04 +02:00
Łukasz Witkowski
37387f5770 dhcp-to-dns: convert DNS names to lower case
Co-authored-by: Christian Hesse <mail@eworm.de>
2026-07-16 13:41:04 +02:00
Christian Hesse
a68259e863 Merge branch 'compare-ids' into next 2026-07-16 13:41:04 +02:00
Christian Hesse
41c2d163a3 global-functions: deprecate $ExitError 2026-07-16 13:41:04 +02:00
Christian Hesse
faa2465bcc dhcp-to-dns: use another :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
17a4fd7766 check-certificates: use :break in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
5470d97a0d dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-07-16 13:41:04 +02:00
Christian Hesse
b828989d8c check-health.d/temperature: give the cpu utilization in notification...
... to give a first hint if high load is an issue.
2026-07-16 13:41:04 +02:00
Christian Hesse
2176187257 global-functions: deprecate $HexToNum 2026-07-16 13:41:04 +02:00
Christian Hesse
6eddaccba9 update-tunnelbroker: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
dff4fb4a8c dhcp-to-dns: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
069de4c948 log-forward: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
0c9c92eb5b update-gre-address: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
3eb20152bb telegram-chat: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
c1eda113b5 log-forward: use comparison for ids
This was introduced with RouterOS 7.22beta1.

Initializing $LogForwardLast with boolean value looks odd, but this is
required to match the very first message.
2026-07-16 13:41:04 +02:00
Christian Hesse
4613405037 telegram-chat: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
9715f95ef5 netwatch-dns: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
c8a66955d3 sms-forward: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
9533f21be0 netwatch-dns: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
7a992f0557 sms-action: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
3bf40ec73f netwatch-dns: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
1116585bee ppp-on-up: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
1826d2fc5b netwatch-dns: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
df65f7263d packages-update: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
31e64f6e96 global-functions: $ScriptInstallUpdate: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
f825f484fe ospf-to-leds: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
68a48e00bd global-functions: $ScriptInstallUpdate: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
15e4c93784 netwatch-notify: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
25608feb0e global-functions: $CleanName: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
e38af4881d netwatch-dns: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
847c985cf4 fw-addr-lists: fix indention 2026-07-16 13:41:04 +02:00
Christian Hesse
fbf346fdd0 log-forward: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
c096306e59 fw-addr-lists: use :continue in loop 2026-07-16 13:41:04 +02:00
Christian Hesse
04eb34d8cc ipv6-update: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
b2674a4e79 ipsec-to-dns: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
eaedb2d5b9 hotspot-to-wpa-cleanup: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
d27d7e0ecc hotspot-to-wpa: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
415c3bc164 gps-track: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
3e9ec8fa31 fw-addr-lists: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
382057afc3 firmware-upgrade-reboot: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
d2f906d9f8 dhcpv6-client-lease: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
0f61c22477 dhcpv4-server-lease: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
8d1a2f2834 dhcp-to-dns: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
307afc9a31 dhcp-lease-comment: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
ff6fc0a7fc daily-psk: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
49c86440ed collect-wireless-mac: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
356661c535 check-routeros-update: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
6f78415c8a check-perpetual-license: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
c2204d55f6 check-lte-firmware-upgrade: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
46cb8e870e check-health: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
0b06740dca check-certificates: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
2f134a2738 certificate-renew-issued: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
8c07b9f252 capsman-rolling-upgrade: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
0bd7175e78 capsman-download-packages: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
558b02c8bb backup-upload: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
3894b5c7d9 backup-partition: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
f252914622 backup-email: early exit with :exit 2026-07-16 13:41:04 +02:00
Christian Hesse
4bc63b575d backup-cloud: early exit with :exit 2026-07-16 13:41:04 +02:00
3 changed files with 5 additions and 2 deletions

View file

@ -14,6 +14,7 @@
:local FuncName [ :tostr $0 ];
:local ScriptName [ :tostr $1 ];
:global CheckHealthCPUUtilization;
:global CheckHealthLast;
:global CheckHealthTemperature;
:global CheckHealthTemperatureDeviation;
@ -57,7 +58,8 @@
$SendNotification2 ({ origin=$ScriptName; \
subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \
message=("The " . $Name . " on " . $Identity . " is above threshold: " . \
$Value . "\C2\B0" . "C") });
$Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \
($CheckHealthCPUUtilization / 10) . "%!") });
:set ($CheckHealthTemperatureNotified->$Name) true;
}
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
@ -65,7 +67,8 @@
$SendNotification2 ({ origin=$ScriptName; \
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \
$Value . "\C2\B0" . "C") });
$Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \
($CheckHealthCPUUtilization / 10) . "%!") });
:set ($CheckHealthTemperatureNotified->$Name) false;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before After
Before After