mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 02:28:39 +02:00
log-forward: use $SendNotification2
This commit is contained in:
parent
354aedd98e
commit
81f84353cd
1 changed files with 6 additions and 6 deletions
12
log-forward
12
log-forward
|
@ -22,7 +22,7 @@
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global QuotedPrintable;
|
:global QuotedPrintable;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global WaitFullyConnected;
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
|
@ -71,11 +71,11 @@ $WaitFullyConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($Count > 0) do={
|
:if ($Count > 0) do={
|
||||||
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
|
||||||
("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
|
message=("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
|
||||||
"this message" ("these " . $Count . " messages") ] . " after " . \
|
"this message" ("these " . $Count . " messages") ] . " after " . \
|
||||||
[ / system resource get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \
|
[ / system resource get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \
|
||||||
(" Multi-repeated messages have been skipped.") ] . "\n" . $Messages);
|
(" Multi-repeated messages have been skipped.") ] . "\n" . $Messages) });
|
||||||
|
|
||||||
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
|
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
|
||||||
:set LogForwardLast ($MessageVal->".id");
|
:set LogForwardLast ($MessageVal->".id");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue