aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-02-21 09:05:52 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-02-28 23:01:43 +0100
commitb1199ca50a16c9accb9a49ae334c4620a69993cc (patch)
tree9940e55b7f7c2c9e4467c35a301630b1e1a8b8e5
parent1344694708eba29f02864f9c5016e835084a0788 (diff)
netwatch-notify: ... and switch state to "unknown" on host update
-rw-r--r--netwatch-notify.rsc1
1 files changed, 1 insertions, 0 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index a562c85..186ac0a 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -87,6 +87,7 @@ $ScriptLock $0;
", updating.") false;
/tool/netwatch/set host=$Resolve $Host;
:set ($Metric->"resolve-failcnt") 0;
+ :set ($HostVal->"status") "unknown";
}
} on-error={
:set ($Metric->"resolve-failcnt") ($Metric->"resolve-failcnt" + 1);