Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.44 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.44 KB

This project is unmaintained and abandoned. A better simple solution is to use the following set of scripts: https://forum.mikrotik.com/viewtopic.php?t=168427

https://forum.mikrotik.com/viewtopic.php?t=168427 these will run directly on your router and you can view bandwidth, traffic and current rate in realtime. As it is it resets counters for devices when they reconnect to the network, but that part of the script can be adjusted.

Mikrotik Traffic Monitor

Mikrotik Traffic Monitor is a relatively small and lightweight server-side tool to collect and process Accounting data from Mikrotik routers running RouterOS and present them in a form that's easy to analyze.

It uses python Flask for the server side of things.

Installation

cd /opt/
git clone https://github.com/Nixellion/MikrotikTrafficMonitor.git
apt install python3 python3-pip python3-dev
cd MikrotikTrafficMonitor
pip3 install -r requirements.txt
cp MikrotikTrafficMonitor.service /lib/systemd/system
systemctl daemon-reload
systemctl enable MikrotikTrafficMonitor
service MikrotikTrafficMonitor start
systemctl status MikrotikTrafficMonitor

Setting up Router

You need to go into IP - Accounting and enable Accounting, also enable Web Access and type the IP of the machine where this tool will run on or leave it at default value.

You may also need to disable fast track as traffic that goes through fast track is not accounted for by RouterOS.