mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
early-errors: wait to be fully connected
This commit is contained in:
@ -25,7 +25,7 @@ Just install this script and [global-wait](global-wait.md):
|
||||
|
||||
... and add a scheduler:
|
||||
|
||||
/ system scheduler add name=early-erros on-event=":global WaitFullyConnected; / system script { run global-wait; \$WaitFullyConnected; run early-errors; }" start-time=startup;
|
||||
/ system scheduler add name=early-erros on-event="/ system script { run global-wait; run early-errors; }" start-time=startup;
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
@ -8,6 +8,9 @@
|
||||
:global Identity;
|
||||
|
||||
:global SendNotification;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
$WaitFullyConnected;
|
||||
|
||||
:local Errors [ / log find where (topics~"error" or topics~"critical") !(topics~"e-mail") !(topics~"dns") ];
|
||||
:local ErrCount [ :len $Errors ];
|
||||
|
Reference in New Issue
Block a user