Compare commits
No commits in common. "daeb173dbcee7384a6dfa9fc45a1c1da1df3ba1a" and "699be25b64a8b67a99786387c8b0407f7e939590" have entirely different histories.
daeb173dbc
...
699be25b64
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 14 KiB |
|
|
@ -231,7 +231,7 @@
|
|||
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
||||
|
||||
$SendNotification2 ({ origin=$ScriptName; \
|
||||
subject=([ $SymbolForNotification "lock-with-ink-pen,warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
||||
subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
||||
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) });
|
||||
$LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \
|
||||
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ markdown -f toc,idanchor "${1}" | sed \
|
|||
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
||||
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
|
||||
-e '/<h[1234] /s|-2[1789cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
|
||||
-e '/^<pre>/s|pre|pre onclick="CopyToClipboard(this)"|g' \
|
||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||
|
||||
sed \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ instead.</p></blockquote>
|
|||
<div class="content">
|
||||
<p id="heading" class="heading">[<span id="hostname">MikroTik</span>] <span id="subject">ℹ️ Subject</span></p>
|
||||
<pre id="message">Message</pre>
|
||||
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://rsc.eworm.de/</span></p>
|
||||
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://eworm.de/</span></p>
|
||||
<p id="queued" class="hint">⏰ This message was queued since <i><span id="queued-since">2025-10-29 16:06:18</span></i> and may be obsolete.</p>
|
||||
<p id="cut" class="hint">✂️ The message was too long and has been truncated, cut off <i><span id="cut-percent">13</span>%</i>!</p>
|
||||
</div>
|
||||
|
|
@ -40,7 +40,7 @@ instead.</p></blockquote>
|
|||
<p>Hostname: <input type="text" value="MikroTik" onchange="update(this, 'hostname')"></p>
|
||||
<p>Subject: <input type="text" size=50 value="ℹ️ Subject" onchange="update(this, 'subject')"></p>
|
||||
<p>Message: <textarea id="w3review" name="w3review" rows="4" cols="50" onchange="update(this, 'message')">Message</textarea></p>
|
||||
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://rsc.eworm.de/" onchange="update(this, 'link-text')"></p>
|
||||
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://eworm.de/" onchange="update(this, 'link-text')"></p>
|
||||
<p><input type="checkbox" onclick="visible(this, 'queued')"> Queued since <input type="text" value="2025-10-29 16:06:18" onchange="update(this, 'queued-since')"></p>
|
||||
<p><input type="checkbox" onclick="visible(this, 'cut')"> Cut-off with <input type="number" min=1 max=99 value=13 onchange="update(this, 'cut-percent')"> percent</p>
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
BIN
doc/check-certificates.d/notification.avif
Normal file
|
After Width: | Height: | Size: 25 KiB |
|
|
@ -19,10 +19,9 @@ Description
|
|||
This script tries to download and renew certificates, then notifies about
|
||||
certificates that are still about to expire.
|
||||
|
||||
### Sample notifications
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
BIN
doc/check-perpetual-license.d/notification.avif
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
|
|
@ -20,10 +20,9 @@ On *Cloud Hosted Router* (*CHR*) the licensing is perpetual: Buy once, use
|
|||
forever - but it needs regular renewal. This script checks licensing state
|
||||
and sends a notification to warn before expiration.
|
||||
|
||||
### Sample notifications
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
BIN
doc/check-routeros-update.d/notification.avif
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
|
@ -31,14 +31,13 @@ automatically is supported.
|
|||
> of view. At the same time it can be source of serve breakage. So test
|
||||
> versions in lab and read
|
||||
> [changelog ↗️](https://mikrotik.com/download/changelogs/) and
|
||||
> [forum ↗️](https://forum.mikrotik.com/c/announcements/5) before deploying
|
||||
> [forum ↗️](https://forum.mikrotik.com/viewforum.php?f=21) before deploying
|
||||
> to your production environment! Automatic updates should be handled
|
||||
> with care!
|
||||
|
||||
### Sample notifications
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
@ -88,8 +87,6 @@ Be notified when run from scheduler or run it manually:
|
|||
|
||||
If an update is found you can install it right away.
|
||||
|
||||

|
||||
|
||||
Installing script [packages-update](packages-update.md) gives extra options.
|
||||
|
||||
Tips & Tricks
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
BIN
doc/log-forward.d/notification.avif
Normal file
|
After Width: | Height: | Size: 6 KiB |
|
|
@ -35,10 +35,9 @@ The script works around the limitations, for example it does:
|
|||
It is intended to be run periodically from scheduler, then collects new
|
||||
log messages and forwards them via notification.
|
||||
|
||||
### Sample notifications
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.5 KiB |
|
|
@ -39,19 +39,15 @@ div.notification {
|
|||
div.content {
|
||||
padding-left: 60px;
|
||||
}
|
||||
hr {
|
||||
clear: both;
|
||||
}
|
||||
img.logo {
|
||||
float: left;
|
||||
/* border-radius: 50%; */
|
||||
border-radius: 50%;
|
||||
}
|
||||
p.foot {
|
||||
color: #777;
|
||||
text-align: center;
|
||||
}
|
||||
p.heading {
|
||||
font-size: 120%;
|
||||
margin: 0px;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
|
|
@ -62,8 +58,6 @@ p.hint {
|
|||
pre {
|
||||
font-family: fira-mono, monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
pre.code {
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid #ccc;
|
||||
overflow: auto;
|
||||
|
|
@ -75,7 +69,7 @@ pre code {
|
|||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
pre.code::before {
|
||||
pre::before {
|
||||
content: "📋 Copy!";
|
||||
float: right;
|
||||
border: 1px solid #ccc;
|
||||
|
|
@ -103,6 +97,5 @@ td.head .bottom {
|
|||
}
|
||||
div.notification {
|
||||
float: right;
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@
|
|||
$LogPrint warning $ScriptName ("Failed to remove message: " . $Err);
|
||||
}
|
||||
} else={
|
||||
:set Messages ($Messages . "\n\n" . [ $SymbolForNotification "incoming-envelope" ] . \
|
||||
"On " . $SmsVal->"timestamp" . " type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \
|
||||
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:foreach Hook in=$SmsForwardHooks do={
|
||||
:if ($Phone~($Hook->"allowed-number") && ($SmsVal->"message")~($Hook->"match")) do={
|
||||
:if ([ $ValidateSyntax ($Hook->"command") ] = true) do={
|
||||
|
|
|
|||