Learn MikroTik RouterOs Tutorial Series (english)
In this tutorial I will show you how to monitor your network links using netwatch. This feature can be used to monitor your internet or local area connections.
Script:
/tool netwatch
add down-script=":global myVarDownTime
\
:set myVarDownTime \"\$[/system clock get time]\"
\
:log error \"WAN link is down\"" host=8.8.8.8 up-script=":global myVarDo\
wnTime
\
:log error \"WAN link is up again\"
\
/tool e-mail send to=\"YourEmailAddress@gmail.com\" subject=\"\$[/sy\
stem identity get name] WAN Link is up on \$[/system clock get time]. Down\
\_from \$myVarDownTime\""
Mikrotik supported devices
---------------------------------------------
RB951Ui-2nD,hAP
RB3011UIAS-RM
RB2011UiAS-2HnD-IN
RB750Gr2
hEX,RB750Gr3
RB2011iLS-IN
CRS109-8G-1S-2HnD-IN
hAP lite
hAP ac mAP
wAP
RB951Ui-2HnD
RB951G-2HnD
RB2011UiAS-2HnD-IN
RB941-2nD-TC
RB2011iL-RM
RB2011UiAS-IN
RB2011UiAS-RM
RB1100AHx4
CCR1009-7G-1C-PC
CCR1009-7G-1C-1S+PC
LDF 5
SXTsq Lite5
DISC Lite5
SXT Lite2
SXTsq 5 ac
LHG 2
Groove 52
LHG 5
LHG XL 2
LHG HP5
SXT 2
LHG
OmniTIK 5
BaseBox
wAP 60G,SEXTANT G
OmniTIK 5
mANTBox
QRT
DynaDish
Негізгі бет MikroTik Tutorial 72 - Monitor network links using Netwatch
No video
Пікірлер: 70