Re: [Astlinux-users] Metering all traffic

2021-01-27 Thread Michael Keuter
> Am 27.01.2021 um 08:34 schrieb Michael Keuter : > > Yes, vnStat looks very promising. > > Sent from a mobile device. > > Michael Keuter BTW: This looks quite nice: https://humdi.net/vnstat/cgidemo/ >> Am 27.01.2021 um 05:27 schrieb David Kerr : >> >>  >> Lonnie, >> That is very intere

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread Michael Keuter
Yes, vnStat looks very promising. Sent from a mobile device. Michael Keuter > Am 27.01.2021 um 05:27 schrieb David Kerr : > >  > Lonnie, > That is very interesting, I would love to have that as part of astlinux. > We may be missing some dependencies, it says it needs libgd for the graphs.

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread David Kerr
Lonnie, That is very interesting, I would love to have that as part of astlinux. We may be missing some dependencies, it says it needs libgd for the graphs. But I would find the data it collects and shows more useful than what we have with Netstat/darkstat today. David. On Tue, Jan 26, 2021 at

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread Lonnie Abelbeck
Hi David, In upstream Buildroot there is a "vnStat" package. Seems like exactly what you are after, uses sqlite for storage. https://humdi.net/vnstat/ Might be a good addition to AstLinux. Lonnie > On Jan 26, 2021, at 4:26 PM, David Kerr wrote: > > Here is what I have done so far. In the

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread David Kerr
Here is what I have done so far. In the network init script I have added the following... echo $(date +%s.%3N; cat /sys/class/net/$EXTIF/statistics/rx_bytes; cat /sys/class/net/$EXTIF/statistics/tx_bytes) "stop" >> /var/log/$EXTIF-meter.txt right before the ip link set dev $EXTIF down. I did the

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread Lonnie Abelbeck
David, If you are happy with Netstat/darkstat there is a way to save and reload that data to persistent storage. Years ago this caused issues, but may work today, and with a rc.conf variable option to enable it. Without looking, basically the darkstat.init needs to be tweaked. Lonnie > On

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread David Kerr
ifconfig/ip -s probably reports closest to what the ISP is metering. And I assume that is what Netstat/darkstat is measuring. But the data on that tab is reset every reboot. I assume the interface RX/TX bytes are reset to zero on boot (and/or on taking the interface down/up). I would need to make

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread Lonnie Abelbeck
> On Jan 26, 2021, at 8:29 AM, Michael Keuter wrote: > > > >> Am 26.01.2021 um 15:08 schrieb David Kerr : >> >> As some of you may be aware, Comcast / Xfinity are starting to impose >> monthly data caps on internet usage. Where I live it is 1.2TB a >> month. So I just received the dreaded

Re: [Astlinux-users] Metering all traffic

2021-01-26 Thread Michael Keuter
> Am 26.01.2021 um 15:08 schrieb David Kerr : > > As some of you may be aware, Comcast / Xfinity are starting to impose > monthly data caps on internet usage. Where I live it is 1.2TB a > month. So I just received the dreaded "You have used 75% of your > allowance" email. Fortunately only 5

[Astlinux-users] Metering all traffic

2021-01-26 Thread David Kerr
As some of you may be aware, Comcast / Xfinity are starting to impose monthly data caps on internet usage. Where I live it is 1.2TB a month. So I just received the dreaded "You have used 75% of your allowance" email. Fortunately only 5 days from the end of the month, but looking back there are m