mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +02: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:
parent
7c288c6203
commit
fee2c4d4ad
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
:global SendNotification;
|
: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 ];
|
:local ErrCount [ :len $Errors ];
|
||||||
:if ($ErrCount > 0) do={
|
:if ($ErrCount > 0) do={
|
||||||
:local Message ("The log on " . $Identity . " contains " . $ErrCount . \
|
:local Message ("The log on " . $Identity . " contains " . $ErrCount . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue