aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-03-04backup-partition: move code into functionGravatar Christian Hesse1-25/+30
2024-03-04backup-email: move code into functionGravatar Christian Hesse1-88/+93
2024-03-04backup-cloud: move code into functionGravatar Christian Hesse1-46/+51
2024-03-04accesslist-duplicates: move code into functionGravatar Christian Hesse5-67/+92
2024-03-03netwatch-notify: check one after anotherGravatar Christian Hesse1-2/+5
This can bring an extra delay, but saves a check in most cases.
2024-03-02netwatch-notify: handle IPv6 / AAAA resolvingGravatar Christian Hesse1-1/+3
2024-03-01netwatch-notify: (mis-)use firewall address-list for lookup...Gravatar Christian Hesse2-13/+7
... and drop the racy code querying dns cache. ๐Ÿ˜
2024-02-29Merge branch 'fw-addr-lists' into nextGravatar Christian Hesse4-16/+80
2024-02-29fw-addr-lists: add support for IPv6change-119Gravatar Christian Hesse4-4/+68
2024-02-29fw-addr-lists: rename variableGravatar Christian Hesse1-11/+11
2024-02-29fw-addr-lists: update wordingGravatar Christian Hesse1-3/+3
2024-02-29fw-addr-lists: get timeout from loopGravatar Christian Hesse1-3/+3
2024-02-29Merge branch 'netwatch-notify' into nextGravatar Christian Hesse2-10/+38
2024-02-28netwatch-notify: handle CNAME to multiple recordsGravatar Christian Hesse2-3/+12
2024-02-28netwatch-notify: move check in DNS cache to local functionGravatar Christian Hesse1-2/+14
2024-02-28netwatch-notify: try another workaroundGravatar Christian Hesse1-4/+2
The last one did not make it... Perhaps the cache just needs a moment to settle?
2024-02-28netwatch-notify: work around race conditionGravatar Christian Hesse1-8/+12
This used to crash every now and then with: > script;error script error: no such item (4) I guess this is caused by querying the dns cache just exactly when a record expires. The chance is maximized: The script is started by scheduler every minute, and the record's ttl is a multiple of a minute. Let's query records that are not about to expire immediately, and try again.
2024-02-28netwatch-notify: restore the check ๐ŸฅดGravatar Christian Hesse1-1/+2
This reverts commit 28da1da49e275fef6089a103edf6c158bbff317f. Chances are that we have to resolve a CNAME, that does not match when querying the cache. How to handle CNAME do multiple A records? ๐Ÿคจ
2024-02-28netwatch-notify: simplify the checkGravatar Christian Hesse1-2/+1
2024-02-28netwatch-notify: ... and switch state to "unknown" on host updateGravatar Christian Hesse1-0/+1
2024-02-28netwatch-notify: handle status "down" in its own condition...Gravatar Christian Hesse1-1/+4
... instead of else-branch. This makes sure to skip hosts that just became "unknown". (Possible soon!)
2024-02-28netwatch-notify: use logical operator, no literal "and"Gravatar Christian Hesse1-1/+1
Just like we do everywhere else.
2024-02-28doc/netwatch-notify: update for multiple recordsGravatar Christian Hesse1-3/+3
2024-02-19netwatch-notify: do not update with record in cacheGravatar Christian Hesse1-1/+2
Using `:resolve` we have just one address, but chances are several records do exist. These end up in cache, so we are happy to find them there - no need to update then.
2024-02-08doc/unattended-lte-firmware-upgrade: more devices supported...Gravatar Christian Hesse1-0/+1
2024-02-08unattended-lte-firmware-upgrade: add error handlingGravatar Christian Hesse1-7/+11
2024-02-08check-lte-firmware-upgrade: give more detailed infos on modemGravatar Christian Hesse1-2/+4
2024-02-02introduce BRANCHES infoGravatar Christian Hesse1-0/+43
2024-02-02doc/backup-partition: add warning about RouterOS versionGravatar Christian Hesse1-0/+4
2024-02-02backup-partition: make sure to remove the scheduler on failureGravatar Christian Hesse1-0/+1
2024-02-02backup-partition: get the actual real name...Gravatar Christian Hesse1-4/+4
... to prevent confusion after restore.
2024-02-02backup-partition: add a scheduler in backup...Gravatar Christian Hesse2-0/+9
... that logs a warning when backup is booted.
2024-02-02backup-partition: use plain variable for nameGravatar Christian Hesse1-4/+4
2024-02-01INITIAL-COMMANDS: link initial commands aboveGravatar Christian Hesse1-4/+5
2024-01-31packages-update: schedule reboot at pre-calculated timeGravatar Christian Hesse2-6/+9
2024-01-31packages-update: move output and logging to local function...Gravatar Christian Hesse1-6/+7
... and pass script name for clean logging.
2024-01-31packages-update: prepare message and mention time zoneGravatar Christian Hesse1-2/+4
2024-01-31backup-upload: use $CleanNameGravatar Christian Hesse1-2/+2
2024-01-31backup-email: use $CleanNameGravatar Christian Hesse1-2/+2
2024-01-31dhcp-to-dns: use $CleanNameGravatar Christian Hesse1-3/+3
2024-01-31global-functions: $CertificateNameByCN: use $CleanNameGravatar Christian Hesse1-3/+2
2024-01-31global-functions: introduce $CleanNameGravatar Christian Hesse1-0/+19
2024-01-31global-functions: $MkDir: drop declaration of unused functionsGravatar Christian Hesse1-2/+0
2024-01-31global-functions: $IsDNSResolving: drop declaration of unused functionGravatar Christian Hesse1-2/+0
2024-01-30check-certificates: always quote the certificate nameGravatar Christian Hesse1-7/+7
2024-01-30global-functions: $ScriptInstallUpdate: warn just once...Gravatar Christian Hesse1-1/+2
... for every script on required RouterOS version.
2024-01-30log-forward: use $MAXGravatar Christian Hesse1-3/+2
2024-01-30Merge branch 'jobname' into nextrouteros-7.12-3Gravatar Christian Hesse66-68/+159
2024-01-30update-tunnelbroker: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30update-gre-address: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30telegram-chat: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30sms-forward: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30sms-action: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30ppp-on-up: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30packages-update: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30ospf-to-leds: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30netwatch-notify: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30netwatch-dns: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30mode-button: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30log-forward: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30lease-script: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30ipv6-update: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30ipsec-to-dns: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30hotspot-to-wpa-cleanup: use :jobname to get script nameGravatar Christian Hesse4-6/+5
2024-01-30hotspot-to-wpa: use :jobname to get script nameGravatar Christian Hesse4-4/+12
2024-01-30gps-track: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30global-wait: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30global-functions: use :jobname to get script nameGravatar Christian Hesse1-1/+1
2024-01-30fw-addr-lists: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30firmware-upgrade-reboot: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30dhcp-to-dns: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30dhcp-lease-comment: use :jobname to get script nameGravatar Christian Hesse5-5/+10
2024-01-30daily-psk.capsman: use :jobname to get script nameGravatar Christian Hesse5-5/+15
2024-01-30collect-wireless-mac: use :jobname to get script nameGravatar Christian Hesse5-5/+10
2024-01-30check-routeros-update: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30check-lte-firmware-upgrade: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30check-health: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30check-certificates: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30certificate-renew-issued: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30capsman-rolling-upgrade: use :jobname to get script nameGravatar Christian Hesse4-4/+8
2024-01-30capsman-download-packages: use :jobname to get script nameGravatar Christian Hesse4-4/+12
2024-01-30backup-upload: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30backup-partition: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30backup-email: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30backup-cloud: use :jobname to get script nameGravatar Christian Hesse1-1/+2
2024-01-30accesslist-duplicates: use :jobname to get script nameGravatar Christian Hesse5-5/+5
2024-01-30Merge branch 'bump' into nextrouteros-7.12-2Gravatar Christian Hesse11-13/+9
2024-01-30mod/ssh-keys-import: bump RouterOS version dependencyGravatar Christian Hesse2-3/+1
2024-01-30accesslist-duplicates: bump RouterOS version dependencyGravatar Christian Hesse6-7/+5
2024-01-30hotspot-to-wpa-cleanup: bump RouterOS version dependencyGravatar Christian Hesse3-3/+3
2024-01-30mod/notification-email: drop support for old property nameGravatar Christian Hesse1-2/+4
2024-01-30README: note on required hardware and limitations by storageGravatar Christian Hesse1-0/+8
2024-01-30README: make required software a paragraphGravatar Christian Hesse1-0/+2
2024-01-30send a warning on storage sizechange-118Gravatar Christian Hesse2-1/+7
2024-01-30packages-update: support deferred reboot on auto-updatechange-117Gravatar Christian Hesse5-1/+24
Closes #56
2024-01-30packages-update: schedule from local functionGravatar Christian Hesse1-8/+12
2024-01-30telegram-chat: add (and increase) random delay on errorGravatar Christian Hesse1-0/+11
Chances are that two devices schedule the script (nearly) simultaneously. Causing a lot of failures from fetch. Instead of forcing a retry on *every* invocating we add (and increase) a random delay, that is slowly decreasd on success. This should minimize failures...
2024-01-30telegram-chat: fix concatenation (and retry with delay)Gravatar Christian Hesse1-1/+1
Ups... ๐Ÿ˜ณ
2024-01-30global-functions: $RandomDelay: always scale to ms...routeros-7.12-1Gravatar Christian Hesse2-3/+4
... to randomize in friction of unit. This requires :tonsec from RouterOS 7.12.
2024-01-29global-functions: $RandomDelay: allow zero time, return immediatelyGravatar Christian Hesse1-0/+4