mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 19:34:41 +02:00
sms-forward: use $MailServerIsUp
This commit is contained in:
parent
7d2239f24e
commit
e11ddeaf8c
1 changed files with 2 additions and 1 deletions
|
@ -7,9 +7,10 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global MailServerIsUp;
|
||||||
|
|
||||||
# check mail server
|
# check mail server
|
||||||
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={
|
:if ($MailServerIsUp = false) do={
|
||||||
:log warning "Mail server is not up.";
|
:log warning "Mail server is not up.";
|
||||||
:error "Warning: See log for details.";
|
:error "Warning: See log for details.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue