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 (firstSaveIntervalminutes 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=strictbut 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
Interfaceconfiguration setting
is left empty (new default) - Add configuration option
DatabaseWriteAheadLoggingto 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
DatabaseSynchronousfor 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
--headertextwasn't being applied to some output types DefaultDecimalssetting 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 UpdateIntervalvalue 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--jsonand--xmloutputs should be seen as
the API version and compared to the previously used version in 3rd party
implementations for verifying compatibility - Default value of
UpdateIntervalis now 20 instead of previous 30 seconds
- Added clarification to the man page that the 'jsonversion' and
vnStat 2.1
- Fixed
--onelinecould 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 whenMonthRotatehad 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
PollIntervalandUpdateIntervaldrift over time - Sync
SaveIntervalto 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
--jsonand--xmloutputs - Hourly list output replaces the hourly graph when the
-hparameter is used - Hourly graph is accessible with
-hg/--hoursgraphparameter - Options
-b/--beginand-e/--endfor 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,--jsonor--xmlinstead--importdb,-u/--updateand 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
TimeSyncWaitkeyword - Add optional parameter to
--onelineoutput for forcing fields to output in bytes - Add
--jsonsupport for-l/--liveand-troutputs - Number of decimals used in outputs can be configured using
DefaultDecimalsandHourlyDecimals - Add section separators for improving readabilty of the
vnstat -houtput, 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