File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5252
5353$ScriptLock $0;
5454
55+ :local ScriptFromTerminalCached [ $ScriptFromTerminal $0 ];
56+
5557:if ([ /system/resource/get uptime ] < 5m) do={
5658 $LogPrintExit2 info $0 ("System just booted, giving netwatch some time to settle.") true;
5759}
@@ -145,7 +147,7 @@ $ScriptLock $0;
145147 }
146148 }
147149 :if ($Metric->"notified" = false || $Metric->"count-down" % 120 = 0 || \
148- [ $ScriptFromTerminal $0 ] = true) do={
150+ $ScriptFromTerminalCached = true) do={
149151 $LogPrintExit2 [ $IfThenElse ($HostInfo->"no-down-notification" != true) info debug ] $0 \
150152 ("The " . $Type . " '" . $Name . "' (" . $HostDetails . ") is down for " . \
151153 $Metric->"count-down" . " checks, " . [ $IfThenElse ($ParentNotified = false) [ $IfThenElse \
You can’t perform that action at this time.
0 commit comments