aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2022-10-14netwatch-notify: fix the count...•••This broke in commit 6f772e92a616acb15bdef8ab7b7bfdb9d002bfeb ("netwatch-notify: rename array element") where not only the array element but also the option was renamed. Gravatar Christian Hesse1-1/+1
2022-10-09update-tunnelbroker: drop extra detection, use response from update•••Why hammer on another service? The tunnelbroker response contains the address we need. So send the update every time, and use that information. Gravatar Christian Hesse1-34/+25
2022-10-09update-tunnelbroker: get public address from website•••This is a good condidate: https://showipv6.de/ We can drop the cloud code, which seems to be unreliable in somd situations. Gravatar Christian Hesse2-14/+13
2022-10-09doc/update-tunnelbroker: give more hints on expected configGravatar Christian Hesse1-1/+4
2022-10-08update-tunnelbroker: work around timing issue•••Looks like fetch command has a timing issue with the tunnelbroker endpoint... We have to try several times to work around this. Consider the update failed on third error. Gravatar Christian Hesse1-5/+14
2022-10-08update-tunnelbroker: add error handling for fetch commandGravatar Christian Hesse1-3/+7
2022-09-29backup-email: check if dependency for sending e-mail is installedGravatar Christian Hesse1-0/+4
2022-09-28global-functions: $ScriptInstallUpdate: disable notification only...•••... if requested, but keep output and logs. Gravatar Christian Hesse1-16/+16
2022-09-28global-functions: $ScriptInstallUpdate: drop dead code...Gravatar Christian Hesse1-4/+1
2022-09-25global-functions: $ScriptInstallUpdate: drop code for permission workaround•••This is no longer used as 'netwatch-syslog' is gone. Gravatar Christian Hesse1-4/+1
2022-09-25drop '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. 😜 Gravatar Christian Hesse3-46/+0
2022-09-25drop '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; change-85Gravatar Christian Hesse5-52/+6
2022-09-25introduce 'mod/notification-email', split off from global-functionschange-84Gravatar Christian Hesse20-151/+240
2022-09-25global-functions: $FlushEmailQueue: do not flush if sendingGravatar Christian Hesse1-0/+5
2022-09-25Makefile: add a clean targetGravatar Christian Hesse1-0/+3
2022-09-21unattended-lte-firmware-upgrade: increase delay before extra resetGravatar Christian Hesse1-1/+1
2022-09-20netwatch-notify: use a counter for resolve failures•••This should relax the error message a bit as it is not triggered on first failure. Gravatar Christian Hesse1-5/+5
2022-09-20global-functions: $GetMacVendor: detect locally administered addresses•••https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit) Gravatar Christian Hesse1-0/+4
2022-09-15mod/notification-matrix: $FlushMatrixQueue: use $0 for scheduler nameGravatar Christian Hesse1-4/+4
2022-09-15mod/notification-telegram: $FlushTelegramQueue: use $0 for scheduler nameGravatar Christian Hesse1-4/+4
2022-09-15global-functions: $FlushEmailQueue: use $0 for scheduler nameGravatar Christian Hesse1-6/+6
2022-09-15global-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... Gravatar Christian Hesse1-0/+6
2022-09-13netwatch-dns: support downloading / importing certificateGravatar Christian Hesse2-0/+16
2022-09-13doc/netwatch-dns: fix example command...•••This broke with: * doc/netwatch-dns: giving hostname in comment is not required 9853943a365639f675fba0bb9c1d64b7edfd00d7 Gravatar Christian Hesse1-1/+1
2022-09-13global-functions: $GetMacVendor: switched to Let's Encrypt (R3)•••So let's check for the correct one, and drop the other. Gravatar Christian Hesse2-167/+1
2022-09-09global-functions: $ScriptInstallUpdate: prepare for future certificate chainGravatar Christian Hesse1-0/+4
2022-09-08Merge branch 'netwatch-notify' into nextGravatar Christian Hesse1-14/+19
2022-09-07netwatch-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. Gravatar Christian Hesse1-1/+3
2022-09-07netwatch-notify: add new array element to count up-checksGravatar Christian Hesse1-1/+4
2022-09-07netwatch-notify: rename array elementGravatar Christian Hesse1-10/+10
2022-09-07netwatch-notify: rename variableGravatar Christian Hesse1-8/+8
2022-09-07global-functions: introduce $GetRandom20CharAlNumGravatar Christian Hesse1-0/+8
2022-09-07global-functions: $GetRandom20CharHex: add optional parameter for lengthGravatar Christian Hesse1-1/+3
2022-09-07netwatch-notify: show dns name (resolve option) in messageGravatar Christian Hesse1-5/+7
2022-08-25global-config: add earth symbol in hello-world message for mode buttonGravatar Christian Hesse1-1/+1
2022-08-25global-functions: $SymbolByUnicodeName: add 'earth'Gravatar Christian Hesse1-0/+1
2022-08-22optimize all svg files...•••... and also update all version numbers to match current release. Gravatar Christian Hesse17-3142/+598
2022-08-19cleanup dummy script from rotate-ntp removalGravatar Christian Hesse1-2/+0
2022-08-15check-health: increase default temperature deviation•••Some devices (with bad temperature sensort?) still product a flood of notifications... Try to avoid that. Gravatar Christian Hesse1-1/+1
2022-08-15logo: optimize the svg fileGravatar Christian Hesse1-121/+22
2022-08-05update list of contributorsGravatar Christian Hesse1-0/+1
2022-08-05global-functions: $GetRandomNumber: use :rndnum•••This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de> Gravatar Michael Gisbers1-8/+2
2022-08-05global-functions: $GetRandom20CharHex: use :rndstr•••This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de> Gravatar Michael Gisbers1-1/+1
2022-08-05unattended-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. Gravatar Christian Hesse1-3/+9
2022-08-04check-lte-firmware-upgrade: use $0 for $ScriptFromTerminalGravatar Christian Hesse1-2/+2
2022-07-21capsman-download-packages: use proper array syntaxGravatar Christian Hesse1-1/+1
2022-07-21global-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. Gravatar Christian Hesse1-0/+8
2022-07-21global-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. Gravatar Christian Hesse1-1/+1
2022-07-21global-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... Gravatar Christian Hesse1-8/+2
2022-07-21global-functions: $IsFullyConnected: remove trailing spaceGravatar Christian Hesse1-1/+1
2022-07-18check-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. Gravatar Christian Hesse1-4/+4
2022-07-13Merge branch 'empty-array' into nextGravatar Christian Hesse19-30/+30
2022-07-13sms-forward: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13netwatch-notify: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13netwatch-dns: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-2/+2
2022-07-13mod/notification-telegram: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13mod/notification-matrix: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13mod/bridge-port-vlan: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13mod/bridge-port-to: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13log-forward: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13lease-script: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13global-functions: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-7/+7
2022-07-13daily-psk: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse3-3/+3
2022-07-13check-lte-firmware-upgrade: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13check-health: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-2/+2
2022-07-13backup-email: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-1/+1
2022-07-13accesslist-duplicates: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse3-6/+6
2022-07-11... and another oneGravatar Christian Hesse1-1/+1
2022-07-11give a heart for contributions ❤️Gravatar Christian Hesse1-1/+1
2022-07-11update list of contributorsGravatar Christian Hesse1-0/+1
2022-07-11netwatch-dns: properly check for disabled state•••The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'. Gravatar Christian Hesse1-2/+2
2022-07-11daily-psk: properly check for disabled state•••The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'. Gravatar Christian Hesse2-2/+2
2022-07-11check-routeros-update: drop check for package...•••... as wireless package is bundled with the system with RouterOS 7.x. Gravatar Christian Hesse1-6/+4
2022-07-08update list of contributorsGravatar Christian Hesse1-0/+1
2022-07-07README: show a sample news and changes notificationGravatar Christian Hesse2-0/+208
2022-07-06global-config: new setting to disable news and change notifications...•••... and also drop the version from global-config and global-config-overlay. change-83Gravatar Christian Hesse8-25/+16
2022-07-06global-config-overlay: update wordingGravatar Christian Hesse1-1/+1
2022-07-06Merge branch 'netwatch' into nextGravatar Christian Hesse9-53/+74
2022-07-06netwatch-dns: break long linesGravatar Christian Hesse1-3/+6
2022-07-06netwatch-notify: break long linesGravatar Christian Hesse1-22/+38
2022-07-06netwatch-notify: also support the name from propertyGravatar Christian Hesse1-1/+2
2022-07-06netwatch-notify: quote the host/service nameGravatar Christian Hesse3-9/+9
2022-07-06netwatch-notify: properly handle services (http-get & tcp-conn)Gravatar Christian Hesse3-19/+21
2022-07-06netwatch-notify: $NetwatchNotifyHook: rename variable: $Type -> $StateGravatar Christian Hesse1-6/+6
2022-07-06netwatch-notify: rename variable: $HostName -> $NameGravatar Christian Hesse1-13/+13
2022-07-06netwatch-notify: rename parameter: hostname -> name•••Starting with RouterOS 7.4 the netwatch tool has been extended, it can now do tcp and http probes. Rename the parameter for reasonable naming with services. change-82Gravatar Christian Hesse7-21/+23
2022-07-06netwatch-notify: properly check for disabled state•••Looks like checking for 'disabled=no' fails with net netwatch in RouterOS 7.4... Gravatar Christian Hesse1-1/+1
2022-07-05doc/netwatch-dns: use default address for quad-nineGravatar Christian Hesse1-2/+2
2022-07-05doc/netwatch-dns: giving hostname in comment is not requiredGravatar Christian Hesse1-6/+6
2022-07-05mod/ipcalc: use $PrettyPrintGravatar Christian Hesse1-6/+7
2022-07-05mod/inspectvar: use $PrettyPrintGravatar Christian Hesse1-2/+2
2022-07-05global-functions: introduce function $PrettyPrint•••... to add trailing carriage return when printing to terminal: [admin@MikroTik] > $PrettyPrint [ $DeviceInfo ] Hostname: MikroTik Board name: hAP ac^2 Architecture: arm Model: RouterBOARD D52G-5HacD2HnD-TC Serial number: 8A2A09A221A1 RouterOS: Channel: testing Installed: 7.4rc1 RouterOS-Scripts: Current: 81 Gravatar Christian Hesse1-0/+10
2022-07-05mod/ipcalc: remove empty lineGravatar Christian Hesse1-1/+0
2022-06-30mod/bridge-port-to: re-enable interfaces by idGravatar Christian Hesse1-7/+3
2022-06-30mod/bridge-port-vlan: re-enable interfaces by idGravatar Christian Hesse1-7/+3
2022-06-29mod/bridge-port-to: do not act on missing interface•••Happens on broken configuration or early boot... Gravatar Christian Hesse1-2/+5
2022-06-29mod/bridge-port-vlan: do not act on missing interface•••Happens on broken configuration or early boot... Gravatar Christian Hesse1-2/+5
2022-06-28README: How to remove a script...Gravatar Christian Hesse2-0/+12
2022-06-28global-functions: $ScriptInstallUpdate: remove script on failure when installingGravatar Christian Hesse1-1/+7
2022-06-20mod/notification-telegram: only flush queue if fully connected•••The fetch command is not as reliable as it should be... Chances were that notifications were sent multiple times if stuck in background. Let's flush only if fully connected - and hope this fixes it. Gravatar Christian Hesse1-0/+6