aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-11-17 14:22:29 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-11-17 14:22:29 +0100
commitcf5220278de066e0721cb85ebffb5aebbc3cfa86 (patch)
tree2c41b10aeecfdc25410685da275c7320f3517396 /netwatch-notify
parent021463c76b5ce1106687ab0a526276a38b776c77 (diff)
netwatch-notify: unbreak custom count
Diffstat (limited to 'netwatch-notify')
-rw-r--r--netwatch-notify2
1 files changed, 1 insertions, 1 deletions
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" . ".");