Releases: vergoh/vnstat
Releases · vergoh/vnstat
vnStat 2.3
- Fixed
- Traffic rate wasn't being shown for the last entry of most lists during
the first update of the next period (firstSaveInterval
minutes of each
new hour, day, month and year) - Systemd example service file could result in database file write issues
if the used systemd version supportedProtectSystem=strict
but didn't
supportStateDirectory
(issue seen at least with systemd 232 in Debian 9) - Debian and Red Hat init.d example files had wrong path for the pid file
- Interfaces could end up staying marked as 'disabled' in the database even
after becoming back active and monitored, only the shown status was wrong
without resulting in any data loss - Some image outputs didn't allocate enough height for the image resulting
in the last row having less space below it than intended
- Traffic rate wasn't being shown for the last entry of most lists during
- New
- Automatic interface selection when the
Interface
configuration setting
is left empty (new default) - Add configuration option
DatabaseWriteAheadLogging
to enable SQLite
Write-Ahead Logging mode which may provide some disk i/o benefits,
see https://www.sqlite.org/wal.html for more details and note that
SQLite 3.22.0 or later is required to support read-only operations - Add configuration option
DatabaseSynchronous
for changing the SQLite
setting of the "synchronous" flag, see
https://www.sqlite.org/pragma.html#pragma_synchronous for more details - Show warning in log if writing cached data to database is slow
- Try database query for up to 5 seconds when database is busy or locked
instead of giving up immediately - Continue daemon process execution with data caching if database writes
fail due to disk being full
- Automatic interface selection when the
vnStat 2.2
- Fixed
- O_CLOEXEC undeclared error when compiling with glibc older than 2.12
- Image output
--headertext
wasn't being applied to some output types DefaultDecimals
setting wasn't controlling all outputs- Traffic rate for the last entry of the 5 minute resolution list wasn't
being correctly calculated
- New
- Detection of 32-bit / 64-bit kernel interface counters for improving
traffic calculations in rollover situations, cfg:64bitInterfaceCounters
- Possibility in queries to merge data from multiple interfaces to one
output with interface1+interface2 syntax - Highlight current day in top list when visible
- Changes in interface specific detected bandwidth limits are reported
in the log UpdateInterval
value is automatically adjusted during daemon startup if
found to be too high compared to the value ofMaxBandwidth
- Detection of 32-bit / 64-bit kernel interface counters for improving
- Notes
- Added clarification to the man page that the 'jsonversion' and
'xmlversion' fields in the--json
and--xml
outputs should be seen as
the API version and compared to the previously used version in 3rd party
implementations for verifying compatibility - Default value of
UpdateInterval
is now 20 instead of previous 30 seconds
- Added clarification to the man page that the 'jsonversion' and
vnStat 2.1
- Fixed
--oneline
could segmentation fault if database had total traffic values
set but didn't have any daily or monthly traffic (Arch bug #60588)- No proper error message was produced when querying interface which didn't
exist in the database - Several typos and spelling mistakes in documentation
- Daemon:waittimesync_does_not_wait_with_new_interfaces test was failing if
the system used a time zone with a negative numeric value - Traffic estimate and average rate for ongoing month was not being
calculated correctly whenMonthRotate
had a value greater than 1 - Accuracy of traffic estimate and average rate for the ongoing month could
be slightly skewed depending on the used time zone
- New
- Remove possible
PollInterval
andUpdateInterval
drift over time - Sync
SaveInterval
to full minutes
- Remove possible
vnStat 2.0
- Fixed
- Data rate calculations when using SI decimal prefixes
- Workaround for filled arcs not drawn correctly with some versions
of libgd (libgd/libgd#351)
- New
- C struct dump database has been replaced with sqlite database,
full data import included from legacy databases of versions 1.3 - 1.18 - Option to select units to use SI decimal prefixes using calculations
with powers of 1000 (IEC and JEDEC prefixes use powers of 1024) - Yearly and 5 minute resolution statistics
- Pebibyte and exbibyte support
- Options the configure the length of each list output
- Option to limit the length of
--json
and--xml
outputs - Hourly list output replaces the hourly graph when the
-h
parameter is used - Hourly graph is accessible with
-hg
/--hoursgraph
parameter - Options
-b
/--begin
and-e
/--end
for specifying query time range - Configuration comes with ISO 8601 date formats as new defaults
- User configurable data retention durations for all resolutions with
following changed defaults:
- C struct dump database has been replaced with sqlite database,
v1.18 | v2.0 | ||
---|---|---|---|
5 minutes | n/a | 576 | (48 hours) |
hours | 24 | 96 | (4 days) |
days | 30 | 62 | (2 full months) |
months | 12 | 25 | (2 full years) |
years | n/a | all | |
top days | 10 | 20 |
- Removed
- Weekly output
- Merge of data from multiple interfaces to one output
--testkernel
--exportdb
, use--oneline
,--json
or--xml
instead--importdb
,-u
/--update
and related options using vnstat command- Old style (default in versions up to 1.7) summary layout in image output
vnStat 1.18
- Fix: Misspellings, compiler warnings and possible error situations (pull requests by Christian Göttsche)
- Hardening added to examples/systemd/vnstat.service (pull request by Christian Göttsche)
- Add RTC sanity check and sync wait to daemon startup, the possible wait duration can be configured using the
TimeSyncWait
keyword - Add optional parameter to
--oneline
output for forcing fields to output in bytes - Add
--json
support for-l
/--live
and-tr
outputs - Number of decimals used in outputs can be configured using
DefaultDecimals
andHourlyDecimals
- Add section separators for improving readabilty of the
vnstat -h
output, configurable usingHourlySectionStyle
vnStat 1.17
- Fix: --importdb was creating invalid databases since version 1.15
- Fix: console output was being buffered which resulted in lack of output
in at least systemd log - Add cross-compilation detection and improve install-data-hook to not
assume that the binaries can be executed in the host system
Note: 1.17 was released on Feb 16, 2017