mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
netwatch-notify: support sending silent notifications
This commit is contained in:
@ -116,7 +116,7 @@ $ScriptLock $0;
|
||||
:set Message ($Message . "\n\n" . [ $NetwatchNotifyHook $Name $Type "up" \
|
||||
($HostInfo->"up-hook") ]);
|
||||
}
|
||||
$SendNotification2 ({ origin=$0; \
|
||||
$SendNotification2 ({ origin=$0; silent=($HostInfo->"silent"); \
|
||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Netwatch Notify: " . \
|
||||
$Name . " up"); \
|
||||
message=$Message });
|
||||
@ -167,7 +167,7 @@ $ScriptLock $0;
|
||||
($HostInfo->"down-hook") ]);
|
||||
}
|
||||
:if ($HostInfo->"no-down-notification" != true) do={
|
||||
$SendNotification2 ({ origin=$0; \
|
||||
$SendNotification2 ({ origin=$0; silent=($HostInfo->"silent"); \
|
||||
subject=([ $SymbolForNotification "cross-mark" ] . "Netwatch Notify: " . \
|
||||
$Name . " down"); \
|
||||
message=$Message });
|
||||
|
Reference in New Issue
Block a user