netwatch-notify: pass link to notification

This is pass verbatim below the notification text.
This commit is contained in:
Christian Hesse 2024-03-13 08:37:11 +01:00
parent ccfbabde5e
commit 3d4a14d449
4 changed files with 11 additions and 3 deletions

View file

@ -144,7 +144,7 @@
}
$SendNotification2 ({ origin=[ $EitherOr ($HostInfo->"origin") $ScriptName ]; silent=($HostInfo->"silent"); \
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Netwatch Notify: " . $Name . " up"); \
message=$Message });
message=$Message; link=($HostInfo->"link") });
}
:set ($Metric->"notified") false;
:set ($Metric->"parent") ($HostInfo->"parent");
@ -199,7 +199,7 @@
:if ($HostInfo->"no-down-notification" != true) do={
$SendNotification2 ({ origin=[ $EitherOr ($HostInfo->"origin") $ScriptName ]; silent=($HostInfo->"silent"); \
subject=([ $SymbolForNotification "cross-mark" ] . "Netwatch Notify: " . $Name . " down"); \
message=$Message });
message=$Message; link=($HostInfo->"link") });
}
:set ($Metric->"notified") true;
}