aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-04-19 10:05:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-04-19 11:25:18 +0200
commitb0cd53f813be602edf59db2ec18e085d84fbebeb (patch)
treecf3e06ef5ba95cf6eb98846d264806fb681c046e /netwatch-notify.rsc
parentee54956a6909190eceb5eae696ad8590720bc3c3 (diff)
netwatch-notify: allow to suppress resolve failure
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r--netwatch-notify.rsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 0b6c366..9b0beb9 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -116,7 +116,7 @@
}
} on-error={
:set ($Metric->"resolve-failcnt") ($Metric->"resolve-failcnt" + 1);
- :if ($Metric->"resolve-failcnt" = 3) do={
+ :if ($Metric->"resolve-failcnt" = 3 && $HostInfo->"no-resolve-fail" != true) do={
$LogPrint warning $ScriptName ("Resolving name '" . $HostInfo->"resolve" . [ $IfThenElse \
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
$HostInfo->"name") "" ] . "' failed.");