From cf5220278de066e0721cb85ebffb5aebbc3cfa86 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 17 Nov 2020 14:22:29 +0100 Subject: netwatch-notify: unbreak custom count --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netwatch-notify') diff --git a/netwatch-notify b/netwatch-notify index 61bb348..6c2a18c 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -48,7 +48,7 @@ :set ($Metric->"since") ($HostVal->"since"); $LogPrintExit info ("Host " . $HostName . " (" . $HostVal->"host" . ") is down for " . \ $Metric->"count" . " checks.") false; - :if ($Metric->"count" >= [ $IfThenElse ([ :typeof ($HostVal->"count") ] != "nothing") ($HostVal->"count") 5 ] && \ + :if ($Metric->"count" >= [ $IfThenElse ([ :typeof ($HostInfo->"count") ] != "nothing") ($HostInfo->"count") 5 ] && \ $Metric->"notified" != true) do={ $SendNotification ([ $SymbolForNotification "cross-mark" ] . "Netwatch Notify: " . $HostName . " down") \ ("Host " . $HostName . " (" . $HostVal->"host" . ") is down since " . $HostVal->"since" . "."); -- cgit v1.2.3-70-g09d2