1
0
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:
Christian Hesse
2020-05-27 00:13:57 +02:00
parent 6a50e80825
commit 7ecda2204f
2 changed files with 4 additions and 1 deletions

View File

@ -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
-------------

View File

@ -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 ];