MikroTik Tutorial 73 - Monitor network traffic using Traffic Monitor

215 Views
Published
Learn MikroTik RouterOs Tutorial Series (english)

The traffic monitor tool is used to execute console scripts when interface traffic crosses a given threshold. Each item in traffic monitor list consists of its name, some parameters, specifying traffic condition, and the pointer to a script or scheduled event to execute when this condition is met.

---- Script ------
/tool traffic-monitor
add interface="ether1 - WAN" name="WAN Download" on-event=":log error \"WAN do\
wnload 3M\"\r\
\n\r\
\n/tool e-mail send to=\"YourEmailAddress@domain.com\" subject=\"WAN 3M\
bps Receive\" \\\r\
\nbody=\"\$[/system clock get date] - \$[/system clock get time]\"" \
threshold=3000000 traffic=received
Category
Mikrotik
Be the first to comment