Monitor bandwidth usage with bandwhich (and build a snap package of it)
popey.com
popey.com
CBM was a fine tool [0]. I think it's been basically abandoned though. It does only do per interface, but it seems like an earlier simpler iteration of this type of tool. It works by reading the stat tables in /proc/net/dev
I'd just throw our something I wrote a long time ago called fsbm [1] (fucking small bandwith monitor) which was a rewrite of CBM without curses. useful for logging to a file or to something without NCURSES support. Along the way I added support for network namespaces and just general other stuff. I use it frequently. You can pump it into i3-bar for example or such and such
[0] https://github.com/resurrecting-open-source-projects/cbm [1] https://git.ceux.org/fsbm.git/tree/fsbm.c
Maybe he has a love hate relationship with snaps lol
Edit: added gh info
snap is the first thing to get the apt-get purge treatment whenever I install a new ubuntu box.
Bandwhich looks like a neat tool[1]
There was a monitoring app called bandwhich that fits a network administrator's niche
something something something something something something
sudo make me a sandwich.
A monitoring app for bandwidth
Captured many false positives that which,
Once analyzed with a filter
Revealed nothing off-kilter.
So I told it to make me a sandwich
The rest of it is adding more mechanism than is required for such a utility. I see so much these days where people can't see the simplest path to the solution of the problem and build complicated Rube Goldberg machines around them. They do nothing other than serve the ego of the person.
Give me a static bin and the sha256.
Edit: oh wait, the upstream already do that! Why all this?!?!?!?!
I admit the submission title probably emphasizes the wrong portion of the content, but if you're not interested in building a snap, this is just not the right post for you.
I already packaged it for nearly every distro, but unfortunately most don't have dash [2] in their repos so the user needs to install it separately, and I was hoping that snap would be an easier solution for that.
[1] https://github.com/elesiuta/picosnitch/blob/master/snap/snap...
I deliberately ran it as my unpriv user account and it spat out an easy to understand summary of why it won't work and some great suggestions on how to fix it.
It looks lovely, does a job very well and goes straight into the toolbox.
This doesn't provide device or app-level granularity, but I can see my network's total bandwidth usage for previous hours, days, and months, which is useful for avoiding Comcast's 1.2TB data cap.
Some people not only like it, but require it for their work - seems like an odd prerequisite.
C'mon, you know they're awful. You know it's not every package using up a loopback device... You know it's not little tricks like hiding apt-get install packages in snap. You know its' not me having a choice in the matter. Really, why is snap so crappy.
Why so incredulous about removing docker?
Did you read the part right before about how the networking interferes with LXD? "remove docker" is a pretty damn good solution to those types of problems as Docker notoriously hacks iptables and screws up all sorts of other apps that rely on it to do networking work. I've had to do that on my desktop in order to get bridges working in kvm (I started using podman instead which plays nicely with kvm).
What alternative solution do you offer instead for fixing the LXD networking?