Community discussions

MikroTik App
 
devrand
just joined
Topic Author
Posts: 6
Joined: Fri Mar 13, 2020 12:09 am

Simple traffic/data volume monitoring

Sat Dec 02, 2023 5:43 pm

I'm currently looking for an easy way to get some data volume statistics (monthly usage info)
It seems Mikrotik does not have anything out of the box (to reduce flash writes maybe?)

Must haves:
  • Get monthly (this and previous month) information about Download/Upload
Optional/Nice to Have:
  • information for the last 12 months
  • Per Device (IP/MAC?) or Interface statistics

I've found a couple ways but all seem to be very custom or require an external server which I'm not really happy about;

IP/Accounting https://wiki.mikrotik.com/wiki/Manual:IP/Accounting
  • no longer supported in RouterOS 7.0
Traffic flow https://help.mikrotik.com/docs/display/ROS/Traffic+Flow
  • Requires external server to store the results
Interface statistics ( /interface print stats)
  • will be reset by reboot (or firmware update)
  • no monthly intervals, only cover what appeared from last boot
Custom scripts
Some funny script which exports the daily status and resets the counters once a month? Alrough this will loose some data during reboots/firmware updates.
Someone wrote something here; https://github.com/muhannad0/mikrotik-traffic-counter
But that again needs a server running somewhere


Is there any obvious, simple and robust solution?
It seems all the ways I've found are just too complex.
 
Moba
Member Candidate
Member Candidate
Posts: 213
Joined: Sun Sep 27, 2020 6:15 pm

Re: Simple traffic/data volume monitoring

Sat Dec 02, 2023 9:50 pm

You don't provide any scenario requiring monitoring, so this is a generic answer. As a low impact home solution, you can make a simple queue to monitor your gateway interface and reset it manually each month. You can make a queue for each user/client, and do the same thing. The problem with services running on small embedded devices is always overhead. Many brands offer some sort of monitoring with a fancy GUI, but there's a cost to it, one way or another. For professional/lab applications, having an external device/server isn't generally an issue. MT has The Dude, but there are other solutions for ISP/WISP operators. Lots of threads on Reddit. If you are inquiring for a commercial application, consultants are also available.

viewtopic.php?t=179960
viewtopic.php?t=177606
https://docs.librenms.org/Support/Devic ... /Routeros/
 
devrand
just joined
Topic Author
Posts: 6
Joined: Fri Mar 13, 2020 12:09 am

Re: Simple traffic/data volume monitoring

Sun Dec 03, 2023 2:56 pm

One usecase would be a LTE router where want to get an idea about the data you consumed.
Personally I just want to get an overview about the data usage on my internet connection.
Per device would be a nice bonus, but not necessary.

Queue seem to not survive reboots/firmware updates, so those are not really an option.

Also, I'm not asking for a fancy gui. It's just a couple numbers.
Those do not create any real overhead.
It seems they've chosen to just store them in RAM to reduce eeprom/flash writes and thus increase endurance.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6753
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Simple traffic/data volume monitoring

Sun Dec 03, 2023 4:14 pm

IP accounting has been replaced by kid control.
Don't let the name fool you, it can do quite a bit more then just babysit.
 
simogere
Frequent Visitor
Frequent Visitor
Posts: 56
Joined: Fri May 24, 2013 11:54 am

Re: Simple traffic/data volume monitoring

Tue Jan 23, 2024 5:34 pm

Hi devrand, how did you resolve this?

Who is online

Users browsing this forum: CGGXANNX, mukkelek and 28 guests