]> granicus.if.org Git - vnstat/log
vnstat
5 years agoshow warning in log if writing cached data to database takes longer than 3 seconds...
Teemu Toivola [Fri, 10 May 2019 22:43:15 +0000 (01:43 +0300)]
show warning in log if writing cached data to database takes longer than 3 seconds, it should take less than a second normally

5 years agorefactor debugging of time used in functions
Teemu Toivola [Fri, 10 May 2019 22:23:35 +0000 (01:23 +0300)]
refactor debugging of time used in functions

5 years agofix missing break
Teemu Toivola [Fri, 10 May 2019 19:49:47 +0000 (22:49 +0300)]
fix missing break

5 years agoadd configure check for SQLite WAL mode support in order to support versions without...
Teemu Toivola [Fri, 10 May 2019 19:23:16 +0000 (22:23 +0300)]
add configure check for SQLite WAL mode support in order to support versions without it, add warning level logging support, show warning during daemon startup if WriteAheadLoggingDatabase is enabled but not supported

5 years agoreplace SQLITE_CHECKPOINT_TRUNCATE with SQLITE_CHECKPOINT_RESTART due to limited...
Teemu Toivola [Thu, 9 May 2019 20:43:58 +0000 (23:43 +0300)]
replace SQLITE_CHECKPOINT_TRUNCATE with SQLITE_CHECKPOINT_RESTART due to limited support in older SQLite versions

5 years agocheckpoint wal database every 4 hours, add debug timing for daemon startup sequence
Teemu Toivola [Thu, 9 May 2019 20:39:15 +0000 (23:39 +0300)]
checkpoint wal database every 4 hours, add debug timing for daemon startup sequence

5 years agoset/increase database busy timeout to 5 seconds when in read-only mode
Teemu Toivola [Wed, 8 May 2019 20:38:54 +0000 (23:38 +0300)]
set/increase database busy timeout to 5 seconds when in read-only mode

5 years agoremove strerror(errno) information from secondary error prints when opening the datab...
Teemu Toivola [Wed, 8 May 2019 20:19:59 +0000 (23:19 +0300)]
remove strerror(errno) information from secondary error prints when opening the database has failed, that information can be misleading when the error is sqlite related in which case the earlier error print has anyway the correct information

5 years agoignore anything that starts with the database name during legacy db import instead...
Teemu Toivola [Wed, 8 May 2019 20:10:59 +0000 (23:10 +0300)]
ignore anything that starts with the database name during legacy db import instead of the exact name of the database, this avoids possible issues with possible automatically created secondary sqlite files

5 years agoadd optional support for SQLite Write-Ahead Logging mode
Teemu Toivola [Tue, 7 May 2019 21:37:07 +0000 (00:37 +0300)]
add optional support for SQLite Write-Ahead Logging mode

5 years agoprovide alternative more simple systemd service file designed to work with also older...
Teemu Toivola [Mon, 6 May 2019 21:43:46 +0000 (00:43 +0300)]
provide alternative more simple systemd service file designed to work with also older systemd versions

5 years agoincrease example systemd service restart delay from default 100ms to 2s, configure...
Teemu Toivola [Mon, 6 May 2019 15:44:21 +0000 (18:44 +0300)]
increase example systemd service restart delay from default 100ms to 2s, configure start rate limits, define ReadWritePaths (which can't be /var/lib/vnstat) to support those systems with such systemd version which supports ProtectSystem=strict but not StateDirectory, closes #131

5 years agofix also summary estimates after previous commit
Teemu Toivola [Wed, 1 May 2019 21:09:14 +0000 (00:09 +0300)]
fix also summary estimates after previous commit

5 years agofix traffic rate not being shown for the last entry of most lists during the first...
Teemu Toivola [Wed, 1 May 2019 17:34:20 +0000 (20:34 +0300)]
fix traffic rate not being shown for the last entry of most lists during the first update of the next period

5 years agorefactoring to improve comparison readability
Teemu Toivola [Wed, 1 May 2019 13:34:23 +0000 (16:34 +0300)]
refactoring to improve comparison readability

5 years agobump version to 2.3 beta
Teemu Toivola [Tue, 30 Apr 2019 22:47:56 +0000 (01:47 +0300)]
bump version to 2.3 beta

5 years agofinal preparations for version 2.2 release v2.2
Teemu Toivola [Sun, 28 Apr 2019 13:31:20 +0000 (16:31 +0300)]
final preparations for version 2.2 release

5 years agofix comparisons of previous commit
Teemu Toivola [Sun, 28 Apr 2019 11:49:11 +0000 (14:49 +0300)]
fix comparisons of previous commit

5 years agofix traffic rate calculation for the last entry of the 5 minute resolution list,...
Teemu Toivola [Sun, 28 Apr 2019 10:59:43 +0000 (13:59 +0300)]
fix traffic rate calculation for the last entry of the 5 minute resolution list, use the timestamp of the beginning of traffic measurement period when storing data instead instead of the end of it

5 years agoadjust UpdateInterval during daemon startup if found to be too high compared to MaxBa...
Teemu Toivola [Wed, 24 Apr 2019 11:52:17 +0000 (14:52 +0300)]
adjust UpdateInterval during daemon startup if found to be too high compared to MaxBandwidth in order to avoid missing 32-bit interface counter rollovers

5 years agorefactor config validation and add more tests
Teemu Toivola [Wed, 24 Apr 2019 10:40:46 +0000 (13:40 +0300)]
refactor config validation and add more tests

5 years agofix DefaultDecimals setting, it wasn't controlling all outputs, add missing tests
Teemu Toivola [Mon, 22 Apr 2019 15:40:06 +0000 (18:40 +0300)]
fix DefaultDecimals setting, it wasn't controlling all outputs, add missing tests

5 years agoadd note for changed default value of UpdateInterval
Teemu Toivola [Sat, 20 Apr 2019 22:22:20 +0000 (01:22 +0300)]
add note for changed default value of UpdateInterval

5 years agobump beta version
Teemu Toivola [Sat, 20 Apr 2019 18:16:49 +0000 (21:16 +0300)]
bump beta version

5 years agoimplement workaround for interface drivers (such as brcmfmac) that provide only 32...
Teemu Toivola [Sat, 20 Apr 2019 18:14:39 +0000 (21:14 +0300)]
implement workaround for interface drivers (such as brcmfmac) that provide only 32-bit range values when 64-bit interface counters are used

5 years agoimprove info print when traffic rate is higher than set maximum, decrease default...
Teemu Toivola [Sat, 20 Apr 2019 17:27:42 +0000 (20:27 +0300)]
improve info print when traffic rate is higher than set maximum, decrease default UpdateInterval from 30 to 20 seconds in order to be on the safer side with 1000 Mbit interfaces using 32-bit interface counters

5 years agoimprove 64-bit interface counter detection
Teemu Toivola [Sat, 20 Apr 2019 16:34:03 +0000 (19:34 +0300)]
improve 64-bit interface counter detection

5 years agoreduce transfer rate calculation safety margin from 10% to 2% to avoid false positive...
Teemu Toivola [Sat, 20 Apr 2019 16:11:26 +0000 (19:11 +0300)]
reduce transfer rate calculation safety margin from 10% to 2% to avoid false positives with high rate interfaces

5 years agoimprove --json and --xml output documentation regarding the field that should be...
Teemu Toivola [Sat, 20 Apr 2019 15:07:43 +0000 (18:07 +0300)]
improve --json and --xml output documentation regarding the field that should be used for API version checks in 3rd party implementations, closes #127

5 years agochanges in interface specific detected bandwidth limits are reported in the log
Teemu Toivola [Mon, 15 Apr 2019 15:16:42 +0000 (18:16 +0300)]
changes in interface specific detected bandwidth limits are reported in the log

5 years agoupdate documentation
Teemu Toivola [Sun, 14 Apr 2019 16:48:42 +0000 (19:48 +0300)]
update documentation

5 years agoclang-format files
Teemu Toivola [Sat, 13 Apr 2019 23:44:39 +0000 (02:44 +0300)]
clang-format files

5 years agoupdate documentation, use markdown style formatting
Teemu Toivola [Sat, 13 Apr 2019 16:19:43 +0000 (19:19 +0300)]
update documentation, use markdown style formatting

5 years agoupdate FAQ
Teemu Toivola [Sat, 13 Apr 2019 14:49:57 +0000 (17:49 +0300)]
update FAQ

5 years agoreduce sql query array sizes, remove unnecessary semicolons
Teemu Toivola [Sat, 13 Apr 2019 14:34:05 +0000 (17:34 +0300)]
reduce sql query array sizes, remove unnecessary semicolons

5 years agohighlight current day in top list when visible
Teemu Toivola [Thu, 21 Mar 2019 20:05:46 +0000 (22:05 +0200)]
highlight current day in top list when visible

5 years agoMerge pull request #125 from vergoh/interface_merge
Teemu Toivola [Sat, 16 Mar 2019 20:50:37 +0000 (22:50 +0200)]
Merge pull request #125 from vergoh/interface_merge

Interface merge implementation

5 years agoenforce the existence and uniqueness of all interfaces in a merge query
Teemu Toivola [Sat, 16 Mar 2019 20:24:31 +0000 (22:24 +0200)]
enforce the existence and uniqueness of all interfaces in a merge query

5 years agoimprove test coverage
Teemu Toivola [Thu, 14 Mar 2019 22:07:01 +0000 (00:07 +0200)]
improve test coverage

5 years agoimprove test coverage
Teemu Toivola [Wed, 13 Mar 2019 21:57:34 +0000 (23:57 +0200)]
improve test coverage

5 years agoincrease fault tolerance and test coverage
Teemu Toivola [Tue, 12 Mar 2019 22:03:05 +0000 (00:03 +0200)]
increase fault tolerance and test coverage

5 years agoupdate documentation and bump beta version
Teemu Toivola [Mon, 11 Mar 2019 20:17:45 +0000 (22:17 +0200)]
update documentation and bump beta version

5 years agoimplement last layer of interface merge support, resolves #122
Teemu Toivola [Mon, 11 Mar 2019 20:07:48 +0000 (22:07 +0200)]
implement last layer of interface merge support, resolves #122

5 years agoadd notes
Teemu Toivola [Mon, 11 Mar 2019 19:04:01 +0000 (21:04 +0200)]
add notes

5 years agoimplement second layer of interface merge support
Teemu Toivola [Sun, 10 Mar 2019 20:47:52 +0000 (22:47 +0200)]
implement second layer of interface merge support

5 years agoimplement first layer of interface merge support
Teemu Toivola [Sun, 10 Mar 2019 20:12:02 +0000 (22:12 +0200)]
implement first layer of interface merge support

5 years agoreturn error if given interface name is longer than supported maximum instead of...
Teemu Toivola [Sun, 10 Mar 2019 19:02:26 +0000 (21:02 +0200)]
return error if given interface name is longer than supported maximum instead of using truncated value

5 years agoharmonize sql queries
Teemu Toivola [Sun, 10 Mar 2019 18:52:29 +0000 (20:52 +0200)]
harmonize sql queries

5 years agofix: some DaemonGroup documentation mentioned user instead of group
Teemu Toivola [Fri, 8 Mar 2019 17:29:52 +0000 (19:29 +0200)]
fix: some DaemonGroup documentation mentioned user instead of group

5 years agorefactoring, remove MAXUPDATEINTERVAL as no longer relevant
Teemu Toivola [Thu, 7 Mar 2019 21:19:42 +0000 (23:19 +0200)]
refactoring, remove MAXUPDATEINTERVAL as no longer relevant

5 years agorefactoring
Teemu Toivola [Wed, 6 Mar 2019 21:14:41 +0000 (23:14 +0200)]
refactoring

5 years agominor fixes, short output monthly estimate could briefly show zero when some traffic...
Teemu Toivola [Tue, 5 Mar 2019 19:53:44 +0000 (21:53 +0200)]
minor fixes, short output monthly estimate could briefly show zero when some traffic had already been seen, date range specific sum row lacked the possibility of showing zeros

5 years agofix image output --headertext not being applied to some output types, resolves #123
Teemu Toivola [Mon, 4 Feb 2019 19:12:30 +0000 (21:12 +0200)]
fix image output --headertext not being applied to some output types, resolves #123

5 years agoimprove README.md
Teemu Toivola [Sat, 2 Feb 2019 16:25:10 +0000 (18:25 +0200)]
improve README.md

5 years agoadjust open() flags depending on what's supported, fixes #121
Teemu Toivola [Sat, 26 Jan 2019 14:51:10 +0000 (16:51 +0200)]
adjust open() flags depending on what's supported, fixes #121

5 years agoimprove daemon prints and rename variable to better fit its current use
Teemu Toivola [Fri, 25 Jan 2019 22:40:34 +0000 (00:40 +0200)]
improve daemon prints and rename variable to better fit its current use

5 years agoadd detection and configuration of 32-bit / 64-bit kernel interface counters
Teemu Toivola [Mon, 14 Jan 2019 21:42:48 +0000 (23:42 +0200)]
add detection and configuration of 32-bit / 64-bit kernel interface counters

6 years agobump version to 2.2 beta
Teemu Toivola [Thu, 6 Dec 2018 16:02:05 +0000 (18:02 +0200)]
bump version to 2.2 beta

6 years agofinal preparations for version 2.1 release v2.1
Teemu Toivola [Thu, 6 Dec 2018 15:45:57 +0000 (17:45 +0200)]
final preparations for version 2.1 release

6 years agoupdate documentation, increase test timeout from default 4 seconds to 10 seconds...
Teemu Toivola [Sun, 2 Dec 2018 14:04:47 +0000 (16:04 +0200)]
update documentation, increase test timeout from default 4 seconds to 10 seconds for image tests in order to avoid timeouts in slower systems

6 years agofix timezone affecting the accuracy of shown average rate and estimates for the ongoi...
Teemu Toivola [Sun, 2 Dec 2018 13:19:45 +0000 (15:19 +0200)]
fix timezone affecting the accuracy of shown average rate and estimates for the ongoing month, related to #113

6 years agofix traffic estimate and average rate for ongoing month not being calculated correctl...
Teemu Toivola [Sun, 25 Nov 2018 19:17:48 +0000 (21:17 +0200)]
fix traffic estimate and average rate for ongoing month not being calculated correctly when MonthRotate had a value larger than 1, closes #113

6 years agoremove possible PollInterval and UpdateInterval drift over time, sync SaveInterval...
Teemu Toivola [Sat, 24 Nov 2018 23:37:46 +0000 (01:37 +0200)]
remove possible PollInterval and UpdateInterval drift over time, sync SaveInterval to full minutes

6 years agofix Daemon:waittimesync_does_not_wait_with_new_interfaces for systems using a time...
Teemu Toivola [Thu, 22 Nov 2018 17:14:20 +0000 (19:14 +0200)]
fix Daemon:waittimesync_does_not_wait_with_new_interfaces for systems using a time zone with a negative numeric value, closes #112

6 years agogive Travis jobs more descriptive names and limit git clone depth a little more than...
Teemu Toivola [Thu, 8 Nov 2018 20:37:33 +0000 (22:37 +0200)]
give Travis jobs more descriptive names and limit git clone depth a little more than default

6 years agoMerge pull request #107 from vergoh/travisxenial
Teemu Toivola [Thu, 8 Nov 2018 20:23:20 +0000 (22:23 +0200)]
Merge pull request #107 from vergoh/travisxenial

enable Ubuntu Xenial in Travis

6 years agoenable Ubuntu Xenial in Travis
Teemu Toivola [Thu, 8 Nov 2018 19:58:37 +0000 (21:58 +0200)]
enable Ubuntu Xenial in Travis

6 years agoMerge pull request #105 from lasers/current-month
Teemu Toivola [Mon, 5 Nov 2018 20:44:05 +0000 (22:44 +0200)]
Merge pull request #105 from lasers/current-month

man/vnstat.1: fix typo today with current month

6 years agoman/vnstat.1: fix typo today with current month
lasers [Mon, 5 Nov 2018 17:17:46 +0000 (11:17 -0600)]
man/vnstat.1: fix typo today with current month

6 years agoadd proper error message if query target interface doesn't exist in database
Teemu Toivola [Sat, 27 Oct 2018 21:17:05 +0000 (00:17 +0300)]
add proper error message if query target interface doesn't exist in database

6 years agofix possibility for --oneline segmentation fault if database had total traffic values...
Teemu Toivola [Sat, 27 Oct 2018 21:06:27 +0000 (00:06 +0300)]
fix possibility for --oneline segmentation fault if database had total traffic values set but didn't have any daily or monthly traffic (Arch bug #60588), most likely requires import of corrupted legacy database in order to occur

6 years agofix man page to no longer contain instructions of interface data merge using the...
Teemu Toivola [Fri, 26 Oct 2018 16:30:22 +0000 (19:30 +0300)]
fix man page to no longer contain instructions of interface data merge using the + syntax

6 years agoMerge pull request #103 from sbraz/man
Teemu Toivola [Wed, 24 Oct 2018 15:46:22 +0000 (18:46 +0300)]
Merge pull request #103 from sbraz/man

Remove --delete option from manpage

6 years agoRemove --delete option from manpage
Louis Sautier [Tue, 23 Oct 2018 22:41:19 +0000 (00:41 +0200)]
Remove --delete option from manpage

6 years agoMerge pull request #102 from foo-san/master
Teemu Toivola [Tue, 23 Oct 2018 15:41:21 +0000 (18:41 +0300)]
Merge pull request #102 from foo-san/master

Fix grammar in src/vnstat.c

6 years agobump version to 2.1 beta
Teemu Toivola [Tue, 23 Oct 2018 15:39:41 +0000 (18:39 +0300)]
bump version to 2.1 beta

6 years agox
foo-san [Tue, 23 Oct 2018 15:10:02 +0000 (08:10 -0700)]
x

6 years agofinal preparations for version 2.0 release v2.0
Teemu Toivola [Sun, 21 Oct 2018 16:59:36 +0000 (19:59 +0300)]
final preparations for version 2.0 release

6 years agofix compiler warnings (gcc 8.2.0 and clang 8.0.0)
Teemu Toivola [Fri, 19 Oct 2018 21:18:10 +0000 (00:18 +0300)]
fix compiler warnings (gcc 8.2.0 and clang 8.0.0)

6 years agoadd another vnstati test with file output, fix imperfections visible in some elements
Teemu Toivola [Fri, 19 Oct 2018 20:53:08 +0000 (23:53 +0300)]
add another vnstati test with file output, fix imperfections visible in some elements

6 years agofix 'since' text alignment in summary image
Teemu Toivola [Sat, 13 Oct 2018 18:19:23 +0000 (21:19 +0300)]
fix 'since' text alignment in summary image

6 years agoadd test image to clean target
Teemu Toivola [Sat, 13 Oct 2018 17:37:29 +0000 (20:37 +0300)]
add test image to clean target

6 years agofix clang warnings
Teemu Toivola [Fri, 12 Oct 2018 21:23:59 +0000 (00:23 +0300)]
fix clang warnings

6 years agoworkaround and test for libgd/libgd#351
Teemu Toivola [Fri, 12 Oct 2018 20:44:08 +0000 (23:44 +0300)]
workaround and test for libgd/libgd#351

6 years agoimprove documentation
Teemu Toivola [Wed, 10 Oct 2018 18:11:45 +0000 (21:11 +0300)]
improve documentation

6 years agofix syntax error
Teemu Toivola [Sun, 7 Oct 2018 14:55:03 +0000 (17:55 +0300)]
fix syntax error

6 years agoupdate documentation, add missing parameters
Teemu Toivola [Sat, 22 Sep 2018 12:13:13 +0000 (15:13 +0300)]
update documentation, add missing parameters

6 years agoupdate example cgi to use new parameter for hourly graph in order to retain the previ...
Teemu Toivola [Sat, 22 Sep 2018 09:35:12 +0000 (12:35 +0300)]
update example cgi to use new parameter for hourly graph in order to retain the previous layout

6 years agofix drawbar() handling when there's no traffic, fix image size and alignment when...
Teemu Toivola [Thu, 20 Sep 2018 18:22:45 +0000 (21:22 +0300)]
fix drawbar() handling when there's no traffic, fix image size and alignment when there's no data

6 years agoadd instructions for log and pid files when installing without root access, closes #99
Teemu Toivola [Thu, 13 Sep 2018 19:43:51 +0000 (22:43 +0300)]
add instructions for log and pid files when installing without root access, closes #99

6 years agorename TrafficlessDays -> TrafficlessEntries configuration option as the setting...
Teemu Toivola [Thu, 13 Sep 2018 17:55:21 +0000 (20:55 +0300)]
rename TrafficlessDays -> TrafficlessEntries configuration option as the setting affects all entry types instead of only days

6 years agorename hourly outputs, update documentation, increase daily and monthly data default...
Teemu Toivola [Mon, 10 Sep 2018 18:39:52 +0000 (21:39 +0300)]
rename hourly outputs, update documentation, increase daily and monthly data default retention a little to provide better overlap of previous period

6 years agofix gcc 8 warnings
Teemu Toivola [Sat, 8 Sep 2018 15:14:39 +0000 (18:14 +0300)]
fix gcc 8 warnings

6 years agoadd time range query support to top lists, uses daily data instead of separate top...
Teemu Toivola [Thu, 6 Sep 2018 18:57:46 +0000 (21:57 +0300)]
add time range query support to top lists, uses daily data instead of separate top entries when range is specified, available time range depends on configured daily data rentention duration

6 years agoadd MonthRotateAffectsYears configuration option and tests
Teemu Toivola [Mon, 3 Sep 2018 19:29:32 +0000 (22:29 +0300)]
add MonthRotateAffectsYears configuration option and tests

6 years agoupgrade autoconf generated files with more recent version
Teemu Toivola [Tue, 28 Aug 2018 18:26:46 +0000 (21:26 +0300)]
upgrade autoconf generated files with more recent version

6 years agoadd null pointer check to interface bandwidth detection, closes #100
Teemu Toivola [Tue, 28 Aug 2018 18:22:56 +0000 (21:22 +0300)]
add null pointer check to interface bandwidth detection, closes #100

6 years agoshow sum of data instead of estimate in lists if end of time range has been specified
Teemu Toivola [Fri, 4 May 2018 22:20:45 +0000 (01:20 +0300)]
show sum of data instead of estimate in lists if end of time range has been specified

6 years agoupdate http -> https
Teemu Toivola [Tue, 1 May 2018 21:48:44 +0000 (00:48 +0300)]
update http -> https

6 years agoupdate documentation
Teemu Toivola [Tue, 1 May 2018 21:46:36 +0000 (00:46 +0300)]
update documentation