mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-05 16:04:25 +02:00
netwatch-notify: ... and switch state to "unknown" on host update
This commit is contained in:
parent
1344694708
commit
b1199ca50a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue