diff options
author | Christian Hesse <mail@eworm.de> | 2024-02-21 09:05:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-02-28 23:01:43 +0100 |
commit | b1199ca50a16c9accb9a49ae334c4620a69993cc (patch) | |
tree | 9940e55b7f7c2c9e4467c35a301630b1e1a8b8e5 /netwatch-notify.rsc | |
parent | 1344694708eba29f02864f9c5016e835084a0788 (diff) |
netwatch-notify: ... and switch state to "unknown" on host update
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r-- | netwatch-notify.rsc | 1 |
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); |