diff options
Diffstat (limited to 'netwatch-notify')
-rw-r--r-- | netwatch-notify | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netwatch-notify b/netwatch-notify index 350c088..0df92b5 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -34,6 +34,10 @@ $SendNotification ("Netwatch Notify: \E2\9C\85 " . $HostName . " up") \ ("Host " . $HostName . " (" . $HostVal->"host" . ") is up since " . $HostVal->"since" . ".\n" . \ "It was down for " . $Count . " checks."); + :if ([ :typeof ($HostInfo->"up-hook") ] = "str") do={ + $LogPrintExit info ("Running hook on host " . $HostName . " up: " . ($HostInfo->"up-hook")) false; + [ :parse ($HostInfo->"up-hook") ]; + } } :set ($Metric->"notified") false; } else={ |