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:
@@ -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 . \
|
||||
|
Reference in New Issue
Block a user