mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-28 12:20:07 +02:00
early-errors: wait to be fully connected
This commit is contained in:
parent
6a50e80825
commit
7ecda2204f
2 changed files with 4 additions and 1 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue