aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-11-26global-functions: $SendTelegram: disable web page previewGravatar Christian Hesse1-1/+1
2020-11-26log-forward: add parenthesis in filter expressionGravatar Christian Hesse1-1/+1
Looks like this works without parenthesis in RouterOS, let's add it anyway.
2020-11-24update list of contributorsGravatar Christian Hesse1-0/+1
2020-11-24check-health: re-measure until we have a valid valueGravatar Christian Hesse1-4/+4
2020-11-24check-health: use second measure against temperature spikesGravatar Christian Hesse1-4/+3
The old spike detection was still prone to false alerts. Let's do a second measurement and ignore on difference. This results in more measurements being ignored, but temperature is changing slowly only and it should not hurt.
2020-11-20check-health: do not write unicode to logGravatar Christian Hesse1-1/+1
2020-11-19check-health: guard against temperature spikesGravatar Christian Hesse1-0/+6
Looks like devices out there suffer sensor issue or bug where temperature value spikes and drops immediately: https://forum.mikrotik.com/viewtopic.php?t=111030 https://forum.mikrotik.com/viewtopic.php?t=111109 https://forum.mikrotik.com/viewtopic.php?t=151242 ... and possibly more. Let's ignore these spikes, but at the same time increase the current value to bring it into line - in case it's real.
2020-11-19check-health: handle formatting by picking from stringGravatar Christian Hesse1-4/+1
The mathematical way is more elegant, but just picking the char from string is shorter. 😜
2020-11-19check-health: properly handle voltage value below oneGravatar Christian Hesse1-0/+3
Before this produced division by zero...
2020-11-17Merge branch 'netwatch-notify'Gravatar Christian Hesse6-8/+37
2020-11-17netwatch-notify: notify about changeschange-37Gravatar Christian Hesse4-3/+4
2020-11-17netwatch-notify: increase count for every parent in chainGravatar Christian Hesse2-2/+5
2020-11-17netwatch-notify: support parents in a chainGravatar Christian Hesse1-3/+13
2020-11-17netwatch-notify: be more verbose in logsGravatar Christian Hesse1-2/+4
2020-11-17netwatch-notify: implemented simple dependency modelGravatar Christian Hesse2-4/+17
2020-11-17doc/netwatch-notify: remove timeout from examplesGravatar Christian Hesse1-3/+3
2020-11-17netwatch-notify: unbreak custom countGravatar Christian Hesse1-1/+1
2020-11-13Merge branch 'log-forward'Gravatar Christian Hesse5-9/+9
2020-11-13log-forward: do not exclude topic 'script'Gravatar Christian Hesse1-1/+1
We have justified severity for some log message, so do no longer exclude topic 'script'.
2020-11-13check-certificates: decrease log severity to infoGravatar Christian Hesse1-2/+2
2020-11-13check-routeros-update: decrease log severity to infoGravatar Christian Hesse1-1/+1
2020-11-13check-health: decrease log severity to infoGravatar Christian Hesse1-1/+1
2020-11-13global-functions: $SendTelegram: decrease log severity to infoGravatar Christian Hesse1-1/+1
The message is queued, not lost...
2020-11-13global-functions: $TimeIsSync: decrease log severity to infoGravatar Christian Hesse1-1/+1
2020-11-13global-functions: $MailServerIsUp: decrease log severity to infoGravatar Christian Hesse1-2/+2
2020-11-13global-functions: $CertificateDownload: be more verboseGravatar Christian Hesse1-1/+2
2020-11-13log-forward: do not forward own e-mail logsGravatar Christian Hesse1-2/+2
Revert the last change, instead just ignore messages that were generated by log-forward, with "Log Forwarding" in subject.
2020-11-12log-forward: do not forward e-mail logsGravatar Christian Hesse1-1/+1
This could cause infinite loop if the mail server does not recover...
2020-11-06global-functions: $DNSIsResolving: use a domain with low ttlGravatar Christian Hesse1-1/+1
2020-11-01README: optional scheduler to update scripts automaticallyGravatar Christian Hesse2-0/+9
2020-11-01doc/global-wait: link more use casesGravatar Christian Hesse1-0/+3
2020-11-01doc/global-wait: warn about schedulerGravatar Christian Hesse1-0/+3
2020-11-01check-routeros-update: support installing updates automatically if seen in ↵change-36Gravatar Christian Hesse6-5/+19
neighbor list
2020-10-27global-functions: $SymbolForNotification: support multiple symbols...Gravatar Christian Hesse1-1/+5
... with comma-separated list.
2020-10-23mode-button: make LED configurablechange-35Gravatar Christian Hesse6-5/+11
2020-10-23mode-button: act on led with type on or off onlyGravatar Christian Hesse1-5/+12
2020-10-23mode-button: act on led with no interface setting onlyGravatar Christian Hesse1-2/+2
2020-10-23mode-button: fix delayGravatar Christian Hesse1-2/+1
The `:beep` command is async... So an additional delay is required unconditionally.
2020-10-23bridge-port-to-default: be more robustGravatar Christian Hesse1-11/+21
This was unreliable with inconsistent configuration...
2020-10-23ospf-to-leds: introduce script to visualize ospf state via ledschange-34Gravatar Christian Hesse7-3/+63
2020-10-23mode-button: support inverted blinkGravatar Christian Hesse1-2/+5
2020-10-22mode-button: use user-led for visual feebackGravatar Christian Hesse1-4/+6
The user-led needs to be configured with type=off, it is ignored with other configuration.
2020-10-19sms-forward: improve wording for single/multiple message(s)Gravatar Christian Hesse1-2/+4
2020-10-18log-forward: improve wording for single messageGravatar Christian Hesse1-2/+4
2020-10-17check-health: do not hardcode names, use as availableGravatar Christian Hesse1-37/+40
2020-10-17sms-forward: lock against multiple invocationsGravatar Christian Hesse1-0/+3
2020-10-16check-health: add deviation on temperature recovery thresholdchange-33Gravatar Christian Hesse5-9/+19
This helps against notification flooding.
2020-10-16check-health: give error on messing health valuesGravatar Christian Hesse1-0/+4
2020-10-16mode-button: merge mode-button-event & mode-button-schedulerchange-32Gravatar Christian Hesse8-57/+66
2020-10-15README: link to global-configGravatar Christian Hesse1-2/+2
2020-10-15global-config: do not define mail addresses by defaultGravatar Christian Hesse2-5/+7
2020-10-14global-functions: $SendTelegram: clean upGravatar Christian Hesse1-11/+19
2020-10-13cloud-backup: add unit for size, add KiBGravatar Christian Hesse1-1/+1
2020-10-13unattended-lte-firmware-upgrade: convert to functionGravatar Christian Hesse1-9/+12
2020-10-13check-lte-firmware-upgrade: show manufacturer & modelGravatar Christian Hesse1-0/+3
2020-10-13global-functions: $SendTelegram: use fixed-width font...change-31Gravatar Christian Hesse4-10/+38
... but give configuration to opt-out.
2020-10-13global-functions: $FlushTelegramQueue, $SendTelegram: move hintGravatar Christian Hesse1-7/+6
2020-10-13global-functions: $UrlEncode: encode new line & carriage returnGravatar Christian Hesse1-4/+5
2020-10-10global-functions: $IPCalc: return data in arrayGravatar Christian Hesse1-6/+19
2020-10-09global-functions: $WaitTimeSync: calculate with modulo operationGravatar Christian Hesse1-1/+1
The uptime is returned in time, with supports arithmetic modulo operation. This is three minutes in nano seconds, so multiplied 180 with 10^9.
2020-10-08packages-update: improve backup failure handlingGravatar Christian Hesse1-0/+10
2020-10-08packages-update: be more verboseGravatar Christian Hesse1-2/+3
2020-10-07packages-update: fix variable usageGravatar Christian Hesse1-1/+2
2020-10-07global-functions: $LogPrintExit: explicitly set severityGravatar Christian Hesse1-0/+1
2020-10-07upload-backup: hint failure in subjectGravatar Christian Hesse1-2/+4
2020-10-07upload-backup: exit with error on errorGravatar Christian Hesse1-0/+4
The error has been logged before, so just make sure to exit with error.
2020-10-07cloud-backup: send notification on error and do exitGravatar Christian Hesse1-1/+3
2020-10-07global-functions: $MailServerIsUp: return gracefully on missing configurationGravatar Christian Hesse1-0/+11
2020-09-28log-forward: notify on rate limitchange-30Gravatar Christian Hesse4-3/+4
2020-09-28log-forward: add rate limit to prevent floodingGravatar Christian Hesse1-0/+15
2020-09-28sms-forward: fix usage of functionGravatar Christian Hesse1-1/+1
2020-09-28log-forward: fix usage of functionGravatar Christian Hesse1-1/+1
2020-09-28global-functions: $SendTelegram: scissors symbol for truncationGravatar Christian Hesse1-1/+2
2020-09-27global-functions: $SendTelegram: truncate messages if too longGravatar Christian Hesse1-1/+8
Telegram messages have a maximum length of 4096 characters. Truncate if too long, keep some spare characters for status messages.
2020-09-25log-forward: add filter on log message textchange-29Gravatar Christian Hesse6-5/+11
2020-09-25dhcp-to-dns: notify on acting on all bound leaseschange-28Gravatar Christian Hesse4-3/+4
2020-09-25global-functions: notify on Telegram queuechange-27Gravatar Christian Hesse4-3/+4
2020-09-25netwatch-notify: notify on configurable check count thresholdchange-26Gravatar Christian Hesse4-3/+4
2020-09-21netwatch-syslog: find the correct netwatch entryGravatar Christian Hesse1-1/+1
2020-09-20lease-script: give correct hint in messageGravatar Christian Hesse1-1/+1
2020-09-19dhcp-to-dns: also act on static leasesGravatar Christian Hesse1-4/+4
Since commit 0560f828 we act on bound leases only. That keeps offline clients away, so act on static leases as well.
2020-09-18collect-wireless-mac: add symbol in notificationGravatar Christian Hesse4-3/+7
2020-09-18daily-psk: add symbol in notificationGravatar Christian Hesse4-3/+7
2020-09-18extend magic pattern with "by RouterOS"Gravatar Christian Hesse56-59/+59
This matches the string included in export.
2020-09-17global-functions: add missing colonGravatar Christian Hesse1-1/+1
2020-09-14global-functions: $FlushTelegramQueue: destroy empty queueGravatar Christian Hesse1-0/+1
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>