mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
log-forward: improve wording for single message
This commit is contained in:
parent
211edb93c0
commit
4a85deb45c
1 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
||||||
:global LogForwardLast;
|
:global LogForwardLast;
|
||||||
:global LogForwardRateLimit;
|
:global LogForwardRateLimit;
|
||||||
|
|
||||||
|
:global IfThenElse;
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
|
@ -55,8 +56,9 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
:if ($Count > 0) do={
|
:if ($Count > 0) do={
|
||||||
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
|
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
|
||||||
("The log on " . $Identity . " contains these " . $Count . " messages after " . \
|
("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
|
||||||
[ / system resource get uptime ] . " uptime.\n" . $Messages);
|
"this message" ("these " . $Count . " messages") ] . " after " . \
|
||||||
|
[ / system resource get uptime ] . " uptime.\n" . $Messages);
|
||||||
|
|
||||||
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
|
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
|
||||||
:set LogForwardLast ($MessageVal->".id");
|
:set LogForwardLast ($MessageVal->".id");
|
||||||
|
|
Loading…
Reference in a new issue