mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:31 +02:00
netwatch-notify: allow to suppress resolve failure
This commit is contained in:
parent
ee54956a69
commit
b0cd53f813
2 changed files with 10 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue