aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-09-14global-functions: $FlushTelegramQueue: give hint on queued messageGravatar Christian Hesse1-2/+8
2020-09-14global-functions: queue Telegram notifications on failure and re-sendGravatar Christian Hesse1-3/+45
This introduces function $FlushTelegramQueue, which flushes queue of Telegram notifications. Notifications are appended to the queue if sending failed.
2020-09-08doc/mode-button: add code to check for supportGravatar Christian Hesse1-0/+14
2020-09-06check-certificates: do not notify with missing validity periodGravatar Christian Hesse1-1/+1
2020-09-03doc/check-certificates: hint on running on startupGravatar Christian Hesse1-0/+4
2020-09-01check-certificates: better check for non-empty valueGravatar Christian Hesse1-1/+1
2020-09-01bridge-port-to-default: better check for non-empty valueGravatar Christian Hesse1-1/+1
2020-09-01global-functions: $DefaultRouteIsReachable: exclude blackholeGravatar Christian Hesse1-1/+1
2020-09-01upload-backup: remove extra curly bracketGravatar Christian Hesse1-1/+0
2020-09-01email-backup: remove extra curly bracketGravatar Christian Hesse1-1/+0
2020-09-01upload-backup: wait for fileGravatar Christian Hesse1-0/+3
2020-09-01email-backup: wait for fileGravatar Christian Hesse1-0/+3
2020-08-26[ ... print count-only ...] -> [ :len [ ... find ... ] ]Gravatar Christian Hesse20-38/+38
Using 'print count-only' always prints a number to terminal, even if the value is evaluated in a condition or assigned to a variable. This can be quite annoying. Behavior will not chance (SUP-25503), so replacing the code...
2020-08-24netwatch-notify: be more verbose on host downtimeGravatar Christian Hesse1-2/+7
Signed-off-by: Christian Hesse <mail@eworm.de>
2020-08-24netwatch-notify: make check count threshold configurableGravatar Christian Hesse2-2/+8
Signed-off-by: Christian Hesse <mail@eworm.de>
2020-08-21global-functions: $TimeIsSync: return gracefully...Gravatar Christian Hesse1-2/+2
Situation will not improve... But chances are that RTC is available with correct time, for example from host inside CHR vm. So return gracefully.
2020-08-21global-functions: $TimeIsSync: warn on missing time sourceGravatar Christian Hesse1-0/+3
2020-08-21global-functions: $TimeIsSync: return false if cloud enabled but not readyGravatar Christian Hesse1-3/+5
2020-08-21global-functions: $TimeIsSync: return false if ntp client enabled but not syncedGravatar Christian Hesse1-0/+1
2020-08-21check-certificates: wait to be fully connectedGravatar Christian Hesse1-4/+2
2020-08-21check-certificates: fix usage of functionGravatar Christian Hesse1-1/+1
2020-08-13fix typo: botton -> buttonGravatar Christian Hesse4-4/+4
2020-08-07notify about support for dhcp server name in fqdnchange-25Gravatar Christian Hesse4-3/+4
2020-08-07update list of contributorsGravatar Christian Hesse1-0/+1
2020-08-07dhcp-to-dns: add support for dhcp server name in fqdnGravatar netztrip3-1/+4
2020-08-03doc/dhcp-to-dns: document $PrefixInZoneGravatar Christian Hesse1-0/+1
2020-07-25global-functions: drop $GetRandomSha256, introduce $GetRandom20CharHexGravatar Christian Hesse1-16/+12
Do do generate certificate, but use scep-server otp.
2020-07-18netwatch-notify: ignore disabled hostsGravatar Christian Hesse1-1/+1
2020-07-17log-forward: lock script to run just onceGravatar Christian Hesse1-0/+3
2020-07-17check-lte-firmware-upgrade: add symbol in notificationGravatar Christian Hesse1-1/+2
2020-07-17check-routeros-update: add symbol in all notificationsGravatar Christian Hesse1-3/+3
2020-07-17upload-backup: change symbol to warning sign on failureGravatar Christian Hesse1-1/+5
2020-07-17check-certificates: add symbol in notificationGravatar Christian Hesse2-2/+4
2020-07-17global-functions: $ScriptInstallUpdate: add symbol in notificationGravatar Christian Hesse1-1/+4
2020-07-17upload-backup: add symbol in notificationGravatar Christian Hesse1-1/+2
2020-07-17cloud-backup: add symbol in notificationGravatar Christian Hesse2-1/+3
2020-07-17global-functions: introduce and use $SymbolForNotificationchange-24Gravatar Christian Hesse9-18/+35
2020-07-17sms-forward: use $SymbolByUnicodeNameGravatar Christian Hesse1-1/+2
2020-07-17netwatch-notify: use $SymbolByUnicodeNameGravatar Christian Hesse1-2/+3
2020-07-17log-forward: use $SymbolByUnicodeNameGravatar Christian Hesse1-1/+2
2020-07-17check-routeros-update: use $SymbolByUnicodeNameGravatar Christian Hesse1-1/+2
2020-07-17check-health: use $SymbolByUnicodeNameGravatar Christian Hesse1-5/+6
2020-07-17global-functions: introduce $SymbolByUnicodeNameGravatar Christian Hesse1-0/+16
2020-07-17check-routeros-update: move symbol before textGravatar Christian Hesse1-1/+1
2020-07-16dhcp-to-dns: use $IfThenElseGravatar Christian Hesse1-11/+7
2020-07-16check-certificates: use $IfThenElseGravatar Christian Hesse1-7/+3
2020-07-16global-functions: $DeviceInfo: use $IfThenElseGravatar Christian Hesse1-31/+21
2020-07-16global-functions: introduce $IfThenElseGravatar Christian Hesse1-0/+9
2020-07-16netwatch-notify: move symbol before textGravatar Christian Hesse1-2/+2
2020-07-16check-health: move symbol before textGravatar Christian Hesse1-5/+5
2020-07-16sms-forward: add symbolGravatar Christian Hesse1-1/+1
2020-07-16INITIAL-COMMANDS: declare $CertificateNameByCNGravatar Christian Hesse1-0/+1
2020-07-15check-health: add symbol for voltageGravatar Christian Hesse1-1/+1
2020-07-15check-health: new symbol for high temperatureGravatar Christian Hesse1-1/+1
2020-07-15log-forward: remember the last id onlyGravatar Christian Hesse1-2/+2
2020-07-15add 'log-forward', drop 'early-errors'change-23Gravatar Christian Hesse9-63/+103
2020-07-14global-functions: $ScriptInstallUpdate: update wording for notificationGravatar Christian Hesse1-1/+1
2020-07-14README: be more explicit on file nameGravatar Christian Hesse1-1/+1
2020-07-14global-config: dropped $ScriptUpdatesIgnore, use ignore flag in commentchange-22Gravatar Christian Hesse6-17/+23
2020-07-14notify about auto patch updates in check-routeros-updatechange-21Gravatar Christian Hesse4-3/+4
2020-07-14notify about hooks in netwatch-notifychange-20Gravatar Christian Hesse4-3/+4
2020-07-14notify about options in script commentschange-19Gravatar Christian Hesse4-3/+4
2020-07-14notify about $IPCalcchange-18Gravatar Christian Hesse4-3/+4
2020-07-14notify about early-errorschange-17Gravatar Christian Hesse4-3/+4
2020-07-14capsman-download-packages: wait to be fully connectedGravatar Christian Hesse2-3/+7
2020-07-14global-functions: $MailServerIsUp: do immediate checkGravatar Christian Hesse1-1/+9
2020-07-14sms-forward: wait to be fully connectedGravatar Christian Hesse1-1/+3
2020-07-14global-functions: $DNSIsResolving: try a domain that is unlikely to be cachedGravatar Christian Hesse1-1/+3
2020-07-07packages-update: add error handling, also run cloud-backupGravatar Christian Hesse1-2/+6
2020-07-07packages-update: do not install downgrade without confirmationGravatar Christian Hesse1-9/+24
2020-07-07doc/check-routeros-update: patch updatesGravatar Christian Hesse1-0/+4
2020-07-07check-routeros-update: send just one notificationGravatar Christian Hesse1-0/+5
2020-07-07check-routeros-update: log and print on available downgradeGravatar Christian Hesse1-0/+2
2020-07-07check-routeros-update: install update only, notification on downgradeGravatar Christian Hesse1-5/+14
2020-07-07check-routeros-update: support installing patch updates automaticallyGravatar Christian Hesse2-0/+16
2020-07-07global-functions: add $VersionToNumGravatar Christian Hesse1-0/+30
2020-07-06early-errors: exclude certificate messagesGravatar Christian Hesse1-1/+2
This is most likely SCEP requests before network is up...
2020-07-06doc/netwatch-notify: document hooksGravatar Christian Hesse1-0/+6
2020-07-06netwatch-notify: add up hook for consistencyGravatar Christian Hesse1-0/+4
Also this works around the permission/policy limitations in netwatch scripts.
2020-07-03netwatch-notify: add support for down hookGravatar Christian Hesse1-1/+6
Adding up-hook does not make sense... Just use netwatch's up-script for that.
2020-07-03mode-button-scheduler: drop useless variableGravatar Christian Hesse1-2/+1
2020-07-03dhcp-to-dns: allow to configure 'dhcp' prefix in zoneGravatar Christian Hesse2-4/+7
2020-07-02global-functions: $ScriptInstallUpdate: get base url and suffix from commentGravatar Christian Hesse1-2/+6
Just set 'base-url=https://example.com/...' and/or 'url-suffix=\h=branch' in comment to overwrite settings from global configuration.
2020-07-02global-functions: $ScriptInstallUpdate: support ignore from commentGravatar Christian Hesse1-0/+3
Just add 'ignore' in comment...
2020-07-02global-functions: $ParseKeyValueStore: allow equals sign in valueGravatar Christian Hesse1-4/+2
2020-07-02global-functions: $ParseKeyValueStore: key without value for boolean trueGravatar Christian Hesse1-2/+6
2020-06-30global-functions: do not initialize $Sent* variablesGravatar Christian Hesse1-3/+0
The scripts work without initialization, removing this makes sure the value is not overwritten on global functions reload.
2020-06-30global-functions: $GetRandomNumber: limit at 2^32-1Gravatar Christian Hesse1-1/+1
2020-06-29global-functions: $GetRandomNumber: return 32bit number without limitGravatar Christian Hesse1-1/+4
2020-06-23global-functions: add $IPCalcGravatar Christian Hesse1-0/+17
[admin@MikroTik] > $IPCalc 192.168.88.188/20 Address: 192.168.88.188 Netmask: 255.255.240.0 Network: 192.168.80.0/20 HostMin: 192.168.80.1 HostMax: 192.168.95.254 Broadcast: 192.168.95.255
2020-06-19explicitly name the licenseGravatar Christian Hesse57-1/+745
Copyright (C) 2013-2020 Christian Hesse <mail@eworm.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. https://www.gnu.org/licenses/#GPL https://www.gnu.org/licenses/gpl.html https://www.gnu.org/licenses/gpl.md
2020-06-18global-functions: $GetRandomNumber: use $GetRandomSha256Gravatar Christian Hesse1-6/+12
2020-06-18global-functions: rename $GetRandom -> $GetRandomNumberGravatar Christian Hesse1-4/+4
2020-06-18global-functions: add $GetRandomSha256Gravatar Christian Hesse1-0/+12
2020-06-10add certificate 'GTS CA 1O1'Gravatar Christian Hesse1-0/+47
This is used by DNS over HTTPS services: https://dns.google/dns-query
2020-06-02dhcp-to-dns: add a marker for new recordsGravatar Christian Hesse2-1/+11
2020-05-27daily-psk: wait to be fully connectedGravatar Christian Hesse4-4/+10
2020-05-27early-errors: wait to be fully connectedGravatar Christian Hesse2-1/+4
2020-05-26doc/early-errors: use $WaitFullyConnectedGravatar Christian Hesse1-1/+1
2020-05-26doc/daily-psk: use $WaitFullyConnectedGravatar Christian Hesse1-1/+1