aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-10-20Merge branch 'notifications' into nextGravatar Christian Hesse46-666/+17
These are generated with my 'RouterOS-Scripts Notification Generator': https://eworm.de/ros/notification/
2022-10-20doc/sms-forward: update notificationGravatar Christian Hesse3-37/+1
---- ✂️ ---- 📨 SMS Forwarding from 7277 Received this message by MikroTik from 7277: On oct/17/2022 13:44:10 GMT -0 type class-0: Welcome to our network! ---- ✂️ ----
2022-10-20doc/netwatch-notify: update notificationsGravatar Christian Hesse5-71/+2
---- ✂️ ---- ❌ Netwatch Notify: example.com down The host 'example.com' (93.184.216.34) is down since oct/19/2022 16:27:03. ---- ✂️ ---- ✅ Netwatch Notify: example.com up The host 'example.com' (93.184.216.34) is up since oct/19/2022 17:03:00. It was down for 6 checks since oct/19/2022 16:27:03. ---- ✂️ ----
2022-10-20doc/log-forward: update notificationGravatar Christian Hesse3-38/+1
---- ✂️ ---- ⚠️ Log Forwarding The log on MikroTik contains these 3 messages after 6d23:55:18 uptime. ● 13:24:02 script;error backup-cloud: Failed uploading backup for MikroTik to cloud! ● 13:24:17 system;info;account user admin logged in from 192.168.88.177 via ssh ● 13:24:57 system;info;account user admin logged out from 192.168.88.177 via ssh ---- ✂️ ----
2022-10-20doc/daily-psk: update notificationGravatar Christian Hesse3-41/+1
---- ✂️ ---- 📅 daily PSK Guest-Wifi This is the daily PSK on MikroTik: SSID: Guest-Wifi PSK: S3cr3tStr1ng Date: oct/18/2022 A client device specific rule must not exist! 🔗 https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi?scale=8&level=1&ssid=Guest-Wifi&pass=S3cr3tStr1ng ---- ✂️ ----
2022-10-20doc/collect-wireless-mac: update notificationGravatar Christian Hesse3-45/+1
---- ✂️ ---- 📱 48:F1:7F:D0:E5:4E connected to Wifi A device with unknown MAC address connected to Wifi on MikroTik. Controller: MikroTik Interface: wl5-wifi SSID: Wifi MAC: 48:F1:7F:D0:E5:4E Vendor: Intel Corporate Hostname: host-523c8e0e Address: 192.168.20.254 DNS name: host-523c8e0e.dhcp.MikroTik.example.com Date: oct/20/2022 09:21:56 ---- ✂️ ----
2022-10-20doc/check-routeros-update: update notificationGravatar Christian Hesse3-46/+1
---- ✂️ ---- ✨ RouterOS update A new RouterOS version 7.6 is available for MikroTik. Hostname: MikroTik Board name: CHR Architecture: x86_64 RouterOS: Channel: stable Installed: 7.5 Available: 7.6 RouterOS-Scripts: Version: 85 🔗 https://mikrotik.com/download/changelogs/stable-release-tree ---- ✂️ ----
2022-10-20doc/check-lte-firmware-upgrade: update notificationGravatar Christian Hesse3-39/+1
---- ✂️ ---- ✨ LTE firmware upgrade A new firmware version R11e-LTE6_V033 is available for LTE interface lte on MikroTik. Interface: MikroTik R11e-LTE6 Installed: R11e-LTE6_V027 Available: R11e-LTE6_V033 ---- ✂️ ----
2022-10-20doc/check-health: update notificationsGravatar Christian Hesse11-173/+5
---- ✂️ ---- ⚡📉 Health warning: voltage The voltage on MikroTik jumped more than 10%. old value: 16.2V new value: 12.4V ---- ✂️ ---- 🔥 Health warning: temperature The temperature on MikroTik is above threshold: 51°C ---- ✂️ ---- ✅ Health recovery: temperature The temperature on MikroTik dropped below threshold: 47°C ---- ✂️ ---- ❌ Health warning: psu1-state The power supply unit 'psu1-state' on MikroTik failed! ---- ✂️ ---- ✅ Health recovery: psu1-state The power supply unit 'psu1-state' on MikroTik recovered! ---- ✂️ ----
2022-10-20doc/check-certificates: update notificationGravatar Christian Hesse3-42/+1
---- ✂️ ---- 🔏 Certificate renewed A certificate on MikroTik has been renewed. Name: example.com CommonName: example.com Private key: available Fingerprint: cc54cdd01fcd7698ecb71213874be776906eb33d26cd57754d168632f14c4c8b Issuer: R3 Validity: sep/08/2022 03:50:56 to dec/07/2022 03:50:55 Expires in: 8w 3d 12:03:30 ---- ✂️ ----
2022-10-20doc/backup-upload: update notificationGravatar Christian Hesse3-46/+1
---- ✂️ ---- 💾⬆️ Backup & Config upload Backup and config export upload for MikroTik. Hostname: MikroTik Board name: CHR Architecture: x86_64 RouterOS: Channel: stable Installed: 7.6 RouterOS-Scripts: Version: 85 Backup file: MikroTik_example_com.backup Config file: MikroTik_example_com.rsc ---- ✂️ ----
2022-10-20doc/backup-cloud: update notificationGravatar Christian Hesse3-47/+1
---- ✂️ ---- 💾☁️ Cloud backup Uploaded backup for MikroTik to cloud. Hostname: MikroTik Board name: CHR Architecture: x86_64 RouterOS: Channel: stable Installed: 7.6 RouterOS-Scripts: Version: 85 Name: cloud-20221020-092419 Size: 370767 B (362 KiB) Download key: LLDBfPcWXxmSetWilqeJX5V ---- ✂️ ----
2022-10-20README: update notificationGravatar Christian Hesse3-41/+1
---- ✂️ ---- 📌 News and configuration changes The configuration version on MikroTik increased to 85, current configuration may need modification. Please review and update global-config-overlay, then re-run global-config. Changes: ● Support for e-mail notifications moved to a module. It is installed automatically if required. ● Dropped 'netwatch-syslog', filtering in firewall is advised. ---- ✂️ ----
2022-10-19mod/notification-telegram: drop 'Telegram' from wordingGravatar Christian Hesse1-1/+1
2022-10-19firmware-upgrade-reboot: update wording, give versionGravatar Christian Hesse1-1/+2
2022-10-19ipsec-to-dns: strip "CN=" from peer's idrouteros-7.6-2Gravatar Christian Hesse1-2/+3
2022-10-19ipsec-to-dns: remove debug outputGravatar Christian Hesse1-2/+0
Oops... 😳 This sneaked in with initial commit 862417b8d32f6eef1c05ba9137fe2a7f14436987 ("add 'ipsec-to-dns'").
2022-10-18update-gre-address: strip "CN=" from peer's idrouteros-7.6-1Gravatar Christian Hesse1-1/+2
The prefix "CN=" is now added in RouterOS 7.6... Let's match with and without the prefix in comment.
2022-10-14netwatch-notify: fix the count...Gravatar Christian Hesse1-1/+1
This broke in commit 6f772e92a616acb15bdef8ab7b7bfdb9d002bfeb ("netwatch-notify: rename array element") where not only the array element but also the option was renamed.
2022-10-09update-tunnelbroker: drop extra detection, use response from updateGravatar Christian Hesse1-34/+25
Why hammer on another service? The tunnelbroker response contains the address we need. So send the update every time, and use that information.
2022-10-09update-tunnelbroker: get public address from websiteGravatar Christian Hesse2-14/+13
This is a good condidate: https://showipv6.de/ We can drop the cloud code, which seems to be unreliable in somd situations.
2022-10-09doc/update-tunnelbroker: give more hints on expected configGravatar Christian Hesse1-1/+4
2022-10-08update-tunnelbroker: work around timing issueGravatar Christian Hesse1-5/+14
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.
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...Gravatar Christian Hesse1-16/+16
... if requested, but keep output and logs.
2022-09-28global-functions: $ScriptInstallUpdate: drop dead code...Gravatar Christian Hesse1-4/+1
2022-09-25global-functions: $ScriptInstallUpdate: drop code for permission workaroundGravatar Christian Hesse1-4/+1
This is no longer used as 'netwatch-syslog' is gone.
2022-09-25drop 'learn-mac-based-vlan' and 'manage-umts'Gravatar Christian Hesse3-46/+0
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-25drop 'netwatch-syslog'change-85Gravatar Christian Hesse5-52/+6
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-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 failuresGravatar Christian Hesse1-5/+5
This should relax the error message a bit as it is not triggered on first failure.
2022-09-20global-functions: $GetMacVendor: detect locally administered addressesGravatar Christian Hesse1-0/+4
https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit)
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 issuesGravatar Christian Hesse1-0/+6
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-13netwatch-dns: support downloading / importing certificateGravatar Christian Hesse2-0/+16
2022-09-13doc/netwatch-dns: fix example command...Gravatar Christian Hesse1-1/+1
This broke with: * doc/netwatch-dns: giving hostname in comment is not required 9853943a365639f675fba0bb9c1d64b7edfd00d7
2022-09-13global-functions: $GetMacVendor: switched to Let's Encrypt (R3)Gravatar Christian Hesse2-167/+1
So let's check for the correct one, and drop the other.
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 recentlyGravatar Christian Hesse1-1/+3
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-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...Gravatar Christian Hesse17-3142/+598
... and also update all version numbers to match current release.
2022-08-19cleanup dummy script from rotate-ntp removalGravatar Christian Hesse1-2/+0
2022-08-15check-health: increase default temperature deviationGravatar Christian Hesse1-1/+1
Some devices (with bad temperature sensort?) still product a flood of notifications... Try to avoid that.
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 :rndnumGravatar Michael Gisbers1-8/+2
This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de>
2022-08-05global-functions: $GetRandom20CharHex: use :rndstrGravatar Michael Gisbers1-1/+1
This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de>
2022-08-05unattended-lte-firmware-upgrade: try without extra resetGravatar Christian Hesse1-3/+9
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-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 resultGravatar Christian Hesse1-0/+8
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-21global-functions: $IsTimeSync: drop the extra condition...Gravatar Christian Hesse1-1/+1
... as ddns is not required to be enabled. The public address is available anyway, but not set in DNS.
2022-07-21global-functions: $IsTimeSync: drop old codeGravatar Christian Hesse1-8/+2
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-21global-functions: $IsFullyConnected: remove trailing spaceGravatar Christian Hesse1-1/+1
2022-07-18check-routeros-update: use a better check for valid versionGravatar Christian Hesse1-4/+4
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-13Merge branch 'empty-array' into nextGravatar Christian Hesse19-30/+30
2022-07-13sms-forward: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13netwatch-notify: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13netwatch-dns: update initialization of empty arrayGravatar Christian Hesse1-2/+2
Having the parenthesis here is important for valid syntax!
2022-07-13mod/notification-telegram: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/notification-matrix: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/bridge-port-vlan: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/bridge-port-to: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13log-forward: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13lease-script: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13global-functions: update initialization of empty arrayGravatar Christian Hesse1-7/+7
Having the parenthesis here is important for valid syntax!
2022-07-13daily-psk: update initialization of empty arrayGravatar Christian Hesse3-3/+3
Having the parenthesis here is important for valid syntax!
2022-07-13check-lte-firmware-upgrade: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13check-health: update initialization of empty arrayGravatar Christian Hesse1-2/+2
Having the parenthesis here is important for valid syntax!
2022-07-13backup-email: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13accesslist-duplicates: update initialization of empty arrayGravatar Christian Hesse3-6/+6
Having the parenthesis here is important for valid syntax!
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 stateGravatar Christian Hesse1-2/+2
The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'.
2022-07-11daily-psk: properly check for disabled stateGravatar Christian Hesse2-2/+2
The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'.
2022-07-11check-routeros-update: drop check for package...Gravatar Christian Hesse1-6/+4
... as wireless package is bundled with the system with RouterOS 7.x.
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...change-83Gravatar Christian Hesse8-25/+16
... and also drop the version from global-config and global-config-overlay.
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