mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-09 17:44:29 +02:00
log-forward: pass origin to $SendNotification2
This commit is contained in:
parent
fe9754c693
commit
87cbc1edad
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ $WaitFullyConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($Count > 0) do={
|
:if ($Count > 0) do={
|
||||||
$SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
|
||||||
message=("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) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue