1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

early-errors: ... and exclude dns messages

Using DoH (DNS over HTTPS) results in a number of error messages before
network becomes available:

dns;error DoH server connection error: Network is unreachable

Exclude these.
This commit is contained in:
Christian Hesse
2020-04-24 23:31:21 +02:00
parent fee2c4d4ad
commit 1bce625ca9

@ -9,7 +9,7 @@
:global SendNotification;
:local Errors [ / log find where (topics~"error" or topics~"critical") !(topics~"e-mail") ];
:local Errors [ / log find where (topics~"error" or topics~"critical") !(topics~"e-mail") !(topics~"dns") ];
:local ErrCount [ :len $Errors ];
:if ($ErrCount > 0) do={
:local Message ("The log on " . $Identity . " contains " . $ErrCount . \