Bug#804131: vnstat: 4G usage is reported if modem was disconnected during live ppp session.

2015-11-20 Thread Teemu Toivola

vnStat 1.12 isn't aware of the link speed of your interface. The
configuration file /etc/vnstat.conf has the "MaxBandwidth" keyword that
defines a failsafe value for the link speed of all interfaces. The default
value in the 1.12-2.1 package is 100 (Mbit) which is far too high for a
usual ppp interface. You options are to either decrease that value down to 8
(if you don't have other interfaces) or add the keyword "MaxBWppp0" followed
by 8 to configure only a specific interface. Restart the daemon once the
configuration has been changed.

-- 
- Teemu Toivola



Bug#804131: vnstat: 4G usage is reported if modem was disconnected during live ppp session.

2015-11-05 Thread Boris Shtrasman
Package: vnstat
Version: 1.12-2.1
Severity: minor

Dear Maintainer,

When a modem is disconnected (or stop responding) during an active ppp session, 
vnstat would
report a 4G usage (upload and download).

if modem is disconnected while there is no ppp session the bug does not
happen.

example on my 8 mbps link (with a 10GB qouta) :

  18/10/15  16.51 GB |16.03 GB |32.54 GB |3.16 Mbit/s
  19/10/15   8.83 GB | 8.05 GB |16.88 GB |1.64 Mbit/s
  02/11/15   5.38 GB | 4.04 GB | 9.41 GB |  913.89 kbit/s

It is not technicly possible to download 16  GB on that link


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (901, 'unstable'), (900, 'testing'), (200, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vnstat depends on:
pn  adduser  
ii  init-system-helpers  1.24
ii  libc62.19-22

vnstat recommends no packages.

Versions of packages vnstat suggests:
ii  vnstati  1.12-2.1

-- Configuration Files:
/etc/vnstat.conf changed:
Interface "ppp0"
DatabaseDir "/var/lib/vnstat"
Locale "-"
MonthRotate 25
DayFormat"%x"
MonthFormat  "%b '%y"
TopFormat"%x"
RXCharacter   "%"
TXCharacter   ":"
RXHourCharacter   "r"
TXHourCharacter   "t"
UnitMode 1
OutputStyle 3
RateUnit 1
MaxBandwidth 0
Sampletime 5
QueryMode 0
CheckDiskSpace 1
UseFileLocking 1
BootVariation 15
TrafficlessDays 1
UpdateInterval 30
PollInterval 5
SaveInterval 5
OfflineSaveInterval 30
SaveOnStatusChange 1
UseLogging 2
LogFile "/var/log/vnstat.log"
PidFile "/var/run/vnstat.pid"
HeaderFormat "%x %H:%M"
HourlyRate 1
SummaryRate 1
SummaryLayout 1
TransparentBg 0
CBackground "FF"
CEdge   "AEAEAE"
CHeader "606060"
CHeaderTitle"FF"
CHeaderDate "FF"
CText   "00"
CLine   "B0B0B0"
CLineL  "-"
CRx "92CF00"
CTx "606060"
CRxD"-"
CTxD"-"


-- debconf-show failed