mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
netwatch-notify: support sending silent notifications
This commit is contained in:
parent
fe0460ef6d
commit
8213c5ed61
1 changed files with 2 additions and 2 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue