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

early-errors: ... but exclude e-mail messages

Most likely these are just error and critical messages failed sending anyway.
This commit is contained in:
Christian Hesse
2020-04-24 23:17:21 +02:00
parent 7c288c6203
commit fee2c4d4ad

View File

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