mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +00:00
check-perpetual-license: add scroll symbol in notification
doc/check-perpetual-license.d/notification-01-warn.avif ----- >8 ----- [rsc] 📜⚠️ License about to expire! Your license failed to renew and is about to expire on 2025-09-13 12:12:23 on rsc... ----- >8 ----- doc/check-perpetual-license.d/notification-02-renew.avif ----- >8 ----- [rsc] 📜✅️ License renewed Your license was successfully renewed on rsc. It is now valid until 2025-10-25 08:42:46. ----- >8 -----
This commit is contained in:
parent
1f11f72d18
commit
7caaa62321
4 changed files with 4 additions and 3 deletions
|
|
@ -42,7 +42,7 @@
|
||||||
$LogPrint warning $ScriptName ("Your license expired on " . ($License->"deadline-at") . "!");
|
$LogPrint warning $ScriptName ("Your license expired on " . ($License->"deadline-at") . "!");
|
||||||
:if ($SentCertificateNotification != "expired") do={
|
:if ($SentCertificateNotification != "expired") do={
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "warning-sign" ] . "License expired!"); \
|
subject=([ $SymbolForNotification "scroll,warning-sign" ] . "License expired!"); \
|
||||||
message=("Your license expired on " . ($License->"deadline-at") . \
|
message=("Your license expired on " . ($License->"deadline-at") . \
|
||||||
", can no longer update RouterOS on " . $Identity . "...") });
|
", can no longer update RouterOS on " . $Identity . "...") });
|
||||||
:set SentCertificateNotification "expired";
|
:set SentCertificateNotification "expired";
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
$LogPrint warning $ScriptName ("Your license will expire on " . ($License->"deadline-at") . "!");
|
$LogPrint warning $ScriptName ("Your license will expire on " . ($License->"deadline-at") . "!");
|
||||||
:if ($SentCertificateNotification != "warning") do={
|
:if ($SentCertificateNotification != "warning") do={
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "warning-sign" ] . "License about to expire!"); \
|
subject=([ $SymbolForNotification "scroll,warning-sign" ] . "License about to expire!"); \
|
||||||
message=("Your license failed to renew and is about to expire on " . \
|
message=("Your license failed to renew and is about to expire on " . \
|
||||||
($License->"deadline-at") . " on " . $Identity . "...") });
|
($License->"deadline-at") . " on " . $Identity . "...") });
|
||||||
:set SentCertificateNotification "warning";
|
:set SentCertificateNotification "warning";
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
[ :totime ($License->"deadline-at") ] - 4w > [ :timestamp ]) do={
|
[ :totime ($License->"deadline-at") ] - 4w > [ :timestamp ]) do={
|
||||||
$LogPrint info $ScriptName ("Your license was successfully renewed.");
|
$LogPrint info $ScriptName ("Your license was successfully renewed.");
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "License renewed"); \
|
subject=([ $SymbolForNotification "scroll,white-heavy-check-mark" ] . "License renewed"); \
|
||||||
message=("Your license was successfully renewed on " . $Identity . \
|
message=("Your license was successfully renewed on " . $Identity . \
|
||||||
". It is now valid until " . ($License->"deadline-at") . ".") });
|
". It is now valid until " . ($License->"deadline-at") . ".") });
|
||||||
:set SentCertificateNotification;
|
:set SentCertificateNotification;
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
|
@ -1704,6 +1704,7 @@
|
||||||
"mobile-phone"="\F0\9F\93\B1";
|
"mobile-phone"="\F0\9F\93\B1";
|
||||||
"pushpin"="\F0\9F\93\8C";
|
"pushpin"="\F0\9F\93\8C";
|
||||||
"scissors"="\E2\9C\82";
|
"scissors"="\E2\9C\82";
|
||||||
|
"scroll"="\F0\9F\93\9C";
|
||||||
"smiley-partying-face"="\F0\9F\A5\B3";
|
"smiley-partying-face"="\F0\9F\A5\B3";
|
||||||
"smiley-smiling-face"="\E2\98\BA";
|
"smiley-smiling-face"="\E2\98\BA";
|
||||||
"smiley-winking-face-with-tongue"="\F0\9F\98\9C";
|
"smiley-winking-face-with-tongue"="\F0\9F\98\9C";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue