mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
log-forward: change symbol for notification
This commit is contained in:
parent
3139b14c67
commit
89f4c91ccf
2 changed files with 3 additions and 2 deletions
|
@ -1082,6 +1082,7 @@
|
|||
"incoming-envelope"="\F0\9F\93\A8";
|
||||
"link"="\F0\9F\94\97";
|
||||
"lock-with-ink-pen"="\F0\9F\94\8F";
|
||||
"memo"="\F0\9F\93\9D";
|
||||
"mobile-phone"="\F0\9F\93\B1";
|
||||
"pushpin"="\F0\9F\93\8C";
|
||||
"scissors"="\E2\9C\82";
|
||||
|
|
|
@ -47,7 +47,7 @@ $ScriptLock $0;
|
|||
:local MessageDups [ :toarray "" ];
|
||||
|
||||
:local LogForwardFilterLogForwarding ("^" . [ $EscapeForRegEx ("Error sending e-mail <" . \
|
||||
[ $QuotedPrintable ("[" . $Identity . "] " . [ $SymbolForNotification "warning-sign" ] . \
|
||||
[ $QuotedPrintable ("[" . $Identity . "] " . [ $SymbolForNotification "memo" ] . \
|
||||
"Log Forwarding") ] . ">:") ]);
|
||||
:foreach Message in=[ /log/find where (!(message="") and !(message~$LogForwardFilterLogForwarding) and \
|
||||
!(topics~$LogForwardFilter) and !(message~$LogForwardFilterMessage)) or \
|
||||
|
@ -69,7 +69,7 @@ $ScriptLock $0;
|
|||
|
||||
:if ($Count > 0) do={
|
||||
$SendNotification2 ({ origin=$0; \
|
||||
subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
|
||||
subject=([ $SymbolForNotification "memo" ] . "Log Forwarding"); \
|
||||
message=("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
|
||||
"this message" ("these " . $Count . " messages") ] . " after " . \
|
||||
[ /system/resource/get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \
|
||||
|
|
Loading…
Reference in a new issue