How do I check internet usage?
luci-app-nlbwmon
Are you saying I need to install
Aren't such stats held in some file in the filesystem?
It defaults to using RAM as data storage, you can configure it differently.
you can indeed save the stats in the filesystem but please use a USB stick or something like that, since otherwise you'd be wearing down the flash memory faster.
Can't I just check Internet usage from the command line?
Hi
if you want to have all day or all week statistic, then you must have some kind of database where you store interface TX/RX data, let's say every 5 minute
but, if you want to see only the current !!! saturation, then you could use IFTOP from CLI
opkg update
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/packages/Packages.sig
Signature check passed.
opkg install iftop
Installing iftop (2018-10-03-77901c8c-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05-SNAPSHOT/packages/x86_64/packages/iftop_2018-10-03-77901c8c-2_x86_64.ipk
Configuring iftop.
and then:
iftop -i switch.33
or whatever interface name you wish to use
edit: example screen
screenshot
I'm basically trying to find out what my Internet usage is in a month so that I know how big a packet to buy.
Do any of these products work with OpenWrt?
https://medium.com/@MetricFire/9-best-open-source-network-monitoring-tools-15ca693d5e02
vnstat2 is what I use.
I don’t think you really need a network monitor. That’s far, far more than you want for your needs.
nlbwmon
reports can be generated from the nlbw
runtime cli. See the README.md here.
As the above post, I also use vnstat2
, as well as softflowd
on PRTG Net monitor mainly to generate reports from Netflow
data, as well as nlbwmon
.
Don’t expect any to provide the same bandwidth stats as the others, but will all produce reasonably acceptable bandwidth traffic for your particular use case.
Hi
there is always a problem with installing anything on router, or storing data
first, if you decide to use some available statistic package, you need plenty of RAM to store one month data & very good UPS to preserve data in case of power loss
or you need USB connector to attach USB stick and store data there
in case you could not satisfy these conditions, your only option is to install "snmpd" or "mini snmpd" and measure data on external monitoring system
both solution have pro&contra
but ... maybe, your ISP could help you with monthly statistic? maybe ISP have usage statistic/graphs for your connection ?
I've installed vnstat. Assuming I have configured it and installed it properly, how do I check usage at any point?
I then use use the relevant luci menus.
vnstat
or vnstat2
? There is a distinction.
Providing you’ve installed vnstat2
and vnstati2
, you should find it in LuCI/Status/Traffic Monitor
menu.
I'm using vnstat
.
From CLI vnstat —longhelp