]> granicus.if.org Git - vnstat/log
vnstat
6 years agoimage output also needs tests
Teemu Toivola [Fri, 12 Jan 2018 21:20:55 +0000 (23:20 +0200)]
image output also needs tests

6 years agoimprove cfg test coverage, related to #84
Teemu Toivola [Wed, 10 Jan 2018 20:09:50 +0000 (22:09 +0200)]
improve cfg test coverage, related to #84

6 years agoadd support for negative numbers to setcfgvalue(), fixes #84
Teemu Toivola [Tue, 9 Jan 2018 22:00:00 +0000 (00:00 +0200)]
add support for negative numbers to setcfgvalue(), fixes #84

6 years agoerror print cleanup
Teemu Toivola [Sun, 7 Jan 2018 20:32:24 +0000 (22:32 +0200)]
error print cleanup

6 years ago2017 -> 2018
Teemu Toivola [Sun, 7 Jan 2018 17:39:52 +0000 (19:39 +0200)]
2017 -> 2018

6 years agoerror handling improvements in vnstat
Teemu Toivola [Sun, 7 Jan 2018 17:38:13 +0000 (19:38 +0200)]
error handling improvements in vnstat

6 years agoupdate README.md
Teemu Toivola [Sun, 7 Jan 2018 14:45:51 +0000 (16:45 +0200)]
update README.md

6 years agofix warnings, increase size of errorstring to fix file paths without truncation
Teemu Toivola [Sun, 7 Jan 2018 14:18:54 +0000 (16:18 +0200)]
fix warnings, increase size of errorstring to fix file paths without truncation

6 years agoremove checks for SQLITE_NOTICE and SQLITE_WARNING to improve support for older sqlit...
Teemu Toivola [Sun, 7 Jan 2018 14:01:54 +0000 (16:01 +0200)]
remove checks for SQLITE_NOTICE and SQLITE_WARNING to improve support for older sqlite releases, these result codes are only used by sqlite3_log() which doesn't get invoked

6 years agofix warnings
Teemu Toivola [Sun, 7 Jan 2018 01:23:23 +0000 (03:23 +0200)]
fix warnings

6 years agoimprove logging and handling of possible database errors
Teemu Toivola [Sat, 6 Jan 2018 23:44:50 +0000 (01:44 +0200)]
improve logging and handling of possible database errors

6 years agoreopen database after starting daemon when forking is used, fixes #82
Teemu Toivola [Thu, 4 Jan 2018 21:00:08 +0000 (23:00 +0200)]
reopen database after starting daemon when forking is used, fixes #82

7 years agoupdate Travis CI configuration
Teemu Toivola [Mon, 9 Oct 2017 20:28:01 +0000 (23:28 +0300)]
update Travis CI configuration

7 years agoMerge pull request #73 from hub2git/patch-1
Teemu Toivola [Mon, 9 Oct 2017 18:30:15 +0000 (21:30 +0300)]
Merge pull request #73 from hub2git/patch-1

Update INSTALL

7 years agoMerge branch 'sqldb' into patch-1
Teemu Toivola [Mon, 9 Oct 2017 18:29:25 +0000 (21:29 +0300)]
Merge branch 'sqldb' into patch-1

7 years agoMerge pull request #74 from hub2git/patch-2
Teemu Toivola [Mon, 9 Oct 2017 18:27:14 +0000 (21:27 +0300)]
Merge pull request #74 from hub2git/patch-2

Update INSTALL

7 years agoMerge pull request #75 from hub2git/patch-3
Teemu Toivola [Mon, 9 Oct 2017 18:26:14 +0000 (21:26 +0300)]
Merge pull request #75 from hub2git/patch-3

Update README.md

7 years agoUpdate README.md
hub2git [Sat, 2 Sep 2017 08:13:17 +0000 (01:13 -0700)]
Update README.md

Just a few tweaks.

7 years agoUpdate INSTALL
hub2git [Sat, 2 Sep 2017 08:09:40 +0000 (01:09 -0700)]
Update INSTALL

minor typo

"Login" is the noun. "Log in" is the verb.

7 years agoUpdate INSTALL
hub2git [Sat, 2 Sep 2017 08:05:08 +0000 (01:05 -0700)]
Update INSTALL

Minor typo

7 years agoadd configuration options for defining maximum entry counts for list output, allow...
Teemu Toivola [Tue, 31 Jan 2017 19:46:04 +0000 (21:46 +0200)]
add configuration options for defining maximum entry counts for list output, allow defining list maximum entry count also as command line parameter

7 years agoyear and 5 minute data added to json and xml, following image outputs implemented...
Teemu Toivola [Mon, 30 Jan 2017 20:22:39 +0000 (22:22 +0200)]
year and 5 minute data added to json and xml, following image outputs implemented: monthly, yearly, top 10

7 years agoenable vnstati compilation, disable all outputs, rewrite daily output
Teemu Toivola [Fri, 27 Jan 2017 22:27:44 +0000 (00:27 +0200)]
enable vnstati compilation, disable all outputs, rewrite daily output

7 years agofix log buffering visible at least with systemd, reformat error prints, replace creat...
Teemu Toivola [Fri, 27 Jan 2017 20:53:00 +0000 (22:53 +0200)]
fix log buffering visible at least with systemd, reformat error prints, replace create/delete parameters with add/remove

7 years agoimplement --exportdb, add previously disabled output tests, remove db merge related...
Teemu Toivola [Thu, 26 Jan 2017 19:39:20 +0000 (21:39 +0200)]
implement --exportdb, add previously disabled output tests, remove db merge related files

7 years agoadd optional raw value mode to --oneline, resolves #54
Teemu Toivola [Thu, 26 Jan 2017 18:33:34 +0000 (20:33 +0200)]
add optional raw value mode to --oneline, resolves #54

7 years agoimprove daemon behaviour during zero traffic times, remove unused functions
Teemu Toivola [Thu, 26 Jan 2017 16:46:59 +0000 (18:46 +0200)]
improve daemon behaviour during zero traffic times, remove unused functions

7 years agoupdate readme
Teemu Toivola [Wed, 25 Jan 2017 20:05:13 +0000 (22:05 +0200)]
update readme

7 years agoimplement json and xml outputs
Teemu Toivola [Wed, 25 Jan 2017 19:57:42 +0000 (21:57 +0200)]
implement json and xml outputs

7 years agoimplement top 10 output
Teemu Toivola [Wed, 25 Jan 2017 18:29:30 +0000 (20:29 +0200)]
implement top 10 output

7 years agoimplement hourly output
Teemu Toivola [Wed, 25 Jan 2017 16:13:51 +0000 (18:13 +0200)]
implement hourly output

7 years agoimplement yearly output
Teemu Toivola [Tue, 24 Jan 2017 21:04:04 +0000 (23:04 +0200)]
implement yearly output

7 years agoimplement short / multiple interfaces at once output, fix memory leak in testcase
Teemu Toivola [Mon, 23 Jan 2017 20:32:00 +0000 (22:32 +0200)]
implement short / multiple interfaces at once output, fix memory leak in testcase

7 years agofeature cleanup, update FSF address in license texts
Teemu Toivola [Mon, 23 Jan 2017 19:43:33 +0000 (21:43 +0200)]
feature cleanup, update FSF address in license texts

7 years agofix estimate and rate calculations in daily and monthly outputs
Teemu Toivola [Sun, 22 Jan 2017 20:36:59 +0000 (22:36 +0200)]
fix estimate and rate calculations in daily and monthly outputs

7 years agoimplement daily and monthly outputs
Teemu Toivola [Sun, 22 Jan 2017 17:50:15 +0000 (19:50 +0200)]
implement daily and monthly outputs

7 years agoimplement --oneline
Teemu Toivola [Sun, 22 Jan 2017 16:58:38 +0000 (18:58 +0200)]
implement --oneline

7 years agoimplement summary output, override default interface setting if database contains...
Teemu Toivola [Sun, 22 Jan 2017 13:17:56 +0000 (15:17 +0200)]
implement summary output, override default interface setting if database contains interfaces but none is the set default interface

7 years agoimplement functions and tests for data retrieval
Teemu Toivola [Sat, 21 Jan 2017 23:50:45 +0000 (01:50 +0200)]
implement functions and tests for data retrieval

7 years agofix and improve unit spacing calculations
Teemu Toivola [Sat, 21 Jan 2017 23:44:08 +0000 (01:44 +0200)]
fix and improve unit spacing calculations

7 years agorefactor functions to use bytes instead of MiB + KiB combinations
Teemu Toivola [Sat, 21 Jan 2017 21:47:57 +0000 (23:47 +0200)]
refactor functions to use bytes instead of MiB + KiB combinations

7 years agoadd --setalias handling
Teemu Toivola [Fri, 20 Jan 2017 19:46:35 +0000 (21:46 +0200)]
add --setalias handling

7 years agoenable compilation of vnstat binary with most features commented out, add necessary...
Teemu Toivola [Thu, 19 Jan 2017 17:34:43 +0000 (19:34 +0200)]
enable compilation of vnstat binary with most features commented out, add necessary sqlite pragma for cascaded deletes, implement interface removal

7 years agoimplement top n entry cleanup
Teemu Toivola [Wed, 18 Jan 2017 20:26:34 +0000 (22:26 +0200)]
implement top n entry cleanup

7 years agoenable data cleanup, collect data only for enabled features, refine data import conso...
Teemu Toivola [Wed, 18 Jan 2017 19:44:22 +0000 (21:44 +0200)]
enable data cleanup, collect data only for enabled features, refine data import console output

7 years agomerge latest master containing autoconf macro cleanup and better cross-compilation...
Teemu Toivola [Tue, 17 Jan 2017 20:18:09 +0000 (22:18 +0200)]
merge latest master containing autoconf macro cleanup and better cross-compilation support

7 years agoskip data input for specific log features when disabled in configuration
Teemu Toivola [Tue, 17 Jan 2017 19:58:47 +0000 (21:58 +0200)]
skip data input for specific log features when disabled in configuration

7 years agoadd new configuration options for data retention durations
Teemu Toivola [Tue, 17 Jan 2017 19:47:13 +0000 (21:47 +0200)]
add new configuration options for data retention durations

7 years agofix created and updated timestamp handling to use a date string consistently in the...
Teemu Toivola [Mon, 16 Jan 2017 20:48:26 +0000 (22:48 +0200)]
fix created and updated timestamp handling to use a date string consistently in the database, fix updated timestamp to show correct information after longer xferlog flush

7 years agoremove check for available disk space from database creation during testing
Teemu Toivola [Fri, 13 Jan 2017 21:19:40 +0000 (23:19 +0200)]
remove check for available disk space from database creation during testing

7 years agocorrectly fix use of memory based database during testing, remove unnecessary setup...
Teemu Toivola [Fri, 13 Jan 2017 21:07:01 +0000 (23:07 +0200)]
correctly fix use of memory based database during testing, remove unnecessary setup steps in tests, make tests fast again

7 years agorefactor bandwidth limit handling
Teemu Toivola [Thu, 12 Jan 2017 19:40:30 +0000 (21:40 +0200)]
refactor bandwidth limit handling

7 years agoadd system boot detection
Teemu Toivola [Wed, 11 Jan 2017 19:57:51 +0000 (21:57 +0200)]
add system boot detection

7 years agofix compiler warning
Teemu Toivola [Wed, 11 Jan 2017 19:03:54 +0000 (21:03 +0200)]
fix compiler warning

7 years agosqlite3_open :memory: instead of NULL for tests, improve prints, disable broken top10...
Teemu Toivola [Wed, 11 Jan 2017 18:56:01 +0000 (20:56 +0200)]
sqlite3_open :memory: instead of NULL for tests, improve prints, disable broken top10 cleanup

7 years agoadd return value checks
Teemu Toivola [Wed, 11 Jan 2017 18:46:14 +0000 (20:46 +0200)]
add return value checks

7 years agoimprove Travis output in error situations
Teemu Toivola [Wed, 11 Jan 2017 08:46:36 +0000 (10:46 +0200)]
improve Travis output in error situations

7 years agoimprove cache content init, add tests
Teemu Toivola [Tue, 10 Jan 2017 20:45:05 +0000 (22:45 +0200)]
improve cache content init, add tests

7 years agorewrite and enable previously disabled tests
Teemu Toivola [Mon, 9 Jan 2017 21:15:24 +0000 (23:15 +0200)]
rewrite and enable previously disabled tests

7 years agofix tests
Teemu Toivola [Sun, 8 Jan 2017 20:53:18 +0000 (22:53 +0200)]
fix tests

7 years agobring back more tests, remove those testing no longer existing functionality, return...
Teemu Toivola [Sun, 8 Jan 2017 19:53:49 +0000 (21:53 +0200)]
bring back more tests, remove those testing no longer existing functionality, return writedb() and backupdb() as test side implementation in order to keep readdb() tested

7 years agoadd full legacy database import for all found databases during first daemon startup
Teemu Toivola [Sun, 8 Jan 2017 19:17:30 +0000 (21:17 +0200)]
add full legacy database import for all found databases during first daemon startup

7 years agoadd functions for legacy data import, add top10 cleanup
Teemu Toivola [Sat, 7 Jan 2017 00:16:21 +0000 (02:16 +0200)]
add functions for legacy data import, add top10 cleanup

7 years agoadd function for handling exit in error situation, flush cache to disk during daemon...
Teemu Toivola [Fri, 6 Jan 2017 21:57:07 +0000 (23:57 +0200)]
add function for handling exit in error situation, flush cache to disk during daemon exit in all situations when possible

7 years agorefactor long function to more manageable pieces
Teemu Toivola [Fri, 6 Jan 2017 21:39:30 +0000 (23:39 +0200)]
refactor long function to more manageable pieces

7 years agoremove unused legacy implementation, add some tests back
Teemu Toivola [Fri, 6 Jan 2017 19:14:48 +0000 (21:14 +0200)]
remove unused legacy implementation, add some tests back

7 years agoadd support for older check releases
Teemu Toivola [Thu, 5 Jan 2017 15:19:40 +0000 (17:19 +0200)]
add support for older check releases

7 years agoremove no longer used dbcache implementation
Teemu Toivola [Wed, 4 Jan 2017 21:07:57 +0000 (23:07 +0200)]
remove no longer used dbcache implementation

7 years agodisable compilation of all but daemon binary, provide minimal working daemon implemen...
Teemu Toivola [Wed, 4 Jan 2017 21:02:59 +0000 (23:02 +0200)]
disable compilation of all but daemon binary, provide minimal working daemon implementation using sqlite database

7 years agocached data needs to be marked as active by default
Teemu Toivola [Tue, 3 Jan 2017 22:05:57 +0000 (00:05 +0200)]
cached data needs to be marked as active by default

7 years agorefactor debug output to take less space
Teemu Toivola [Tue, 3 Jan 2017 19:05:55 +0000 (21:05 +0200)]
refactor debug output to take less space

7 years agofirst draft of new data caching functions for the daemon
Teemu Toivola [Mon, 2 Jan 2017 21:48:37 +0000 (23:48 +0200)]
first draft of new data caching functions for the daemon

7 years agoadd timestamp regarding interface information read event
Teemu Toivola [Mon, 2 Jan 2017 18:03:04 +0000 (20:03 +0200)]
add timestamp regarding interface information read event

7 years agoimplement some missing features
Teemu Toivola [Mon, 2 Jan 2017 18:01:39 +0000 (20:01 +0200)]
implement some missing features

7 years agoadd function for getting interface list from database
Teemu Toivola [Sat, 31 Dec 2016 23:25:54 +0000 (01:25 +0200)]
add function for getting interface list from database

7 years agofix addtraffic, add top days to database schema
Teemu Toivola [Wed, 28 Dec 2016 21:18:21 +0000 (23:18 +0200)]
fix addtraffic, add top days to database schema

7 years agoimprove interface counting
Teemu Toivola [Wed, 28 Dec 2016 19:28:11 +0000 (21:28 +0200)]
improve interface counting

7 years agoadd function for counting interfaces from database
Teemu Toivola [Wed, 28 Dec 2016 19:11:56 +0000 (21:11 +0200)]
add function for counting interfaces from database

7 years agofocus on daemon, reduce compilation and test scope
Teemu Toivola [Wed, 28 Dec 2016 18:27:17 +0000 (20:27 +0200)]
focus on daemon, reduce compilation and test scope

7 years agodb implementation cleanup, add functions and test for counter handling, use localtime...
Teemu Toivola [Wed, 28 Dec 2016 16:59:59 +0000 (18:59 +0200)]
db implementation cleanup, add functions and test for counter handling, use localtime instead of utc

8 years agofix cross-compilation detection, resolves #53
Teemu Toivola [Tue, 27 Dec 2016 01:08:18 +0000 (03:08 +0200)]
fix cross-compilation detection, resolves #53

8 years agoremove unnecessary autoconf macros, add check for cross-compiling and improve install...
Teemu Toivola [Mon, 26 Dec 2016 22:41:51 +0000 (00:41 +0200)]
remove unnecessary autoconf macros, add check for cross-compiling and improve install-data-hook to not assume that the binaries can be executed in the host system, closes #53

8 years agomerge latest master, update to use autotools
Teemu Toivola [Sat, 24 Dec 2016 18:35:00 +0000 (20:35 +0200)]
merge latest master, update to use autotools

8 years agobump version to 1.17 beta
Teemu Toivola [Sat, 24 Dec 2016 15:00:41 +0000 (17:00 +0200)]
bump version to 1.17 beta

8 years agofinal preparations for version 1.16 release v1.16
Teemu Toivola [Sat, 24 Dec 2016 13:47:35 +0000 (15:47 +0200)]
final preparations for version 1.16 release

8 years agoupdate documentation
Teemu Toivola [Fri, 23 Dec 2016 20:14:55 +0000 (22:14 +0200)]
update documentation

8 years agorephrase install documentation
Teemu Toivola [Thu, 22 Dec 2016 21:04:53 +0000 (23:04 +0200)]
rephrase install documentation

8 years agoupdate BSD install documentation regarding libgd2 requirements, add appendix about...
Teemu Toivola [Wed, 21 Dec 2016 16:22:57 +0000 (18:22 +0200)]
update BSD install documentation regarding libgd2 requirements, add appendix about the execution of the test suite

8 years agohave separate test for systems without extern long timezone available
Teemu Toivola [Wed, 21 Dec 2016 15:35:16 +0000 (17:35 +0200)]
have separate test for systems without extern long timezone available

8 years agoimprove configure summary output, add checks for mbstowcs and wcswidth and modify...
Teemu Toivola [Wed, 21 Dec 2016 13:54:14 +0000 (15:54 +0200)]
improve configure summary output, add checks for mbstowcs and wcswidth and modify behaviour if not available

8 years agoallow enforcing database output with --force even if database content doesn't pass...
Teemu Toivola [Tue, 20 Dec 2016 22:26:35 +0000 (00:26 +0200)]
allow enforcing database output with --force even if database content doesn't pass validation

8 years agofix compiler warning
Teemu Toivola [Tue, 20 Dec 2016 21:48:57 +0000 (23:48 +0200)]
fix compiler warning

8 years agofix Coverity findings, closes #50
Teemu Toivola [Tue, 20 Dec 2016 21:34:17 +0000 (23:34 +0200)]
fix Coverity findings, closes #50

8 years agoimprove user guidance in error situations related to the configured default interface
Teemu Toivola [Tue, 20 Dec 2016 17:40:53 +0000 (19:40 +0200)]
improve user guidance in error situations related to the configured default interface

8 years agoupdate documentation
Teemu Toivola [Tue, 20 Dec 2016 16:18:17 +0000 (18:18 +0200)]
update documentation

8 years agomore refactoring, fix compiler warnings, update database file ownership to match...
Teemu Toivola [Mon, 19 Dec 2016 23:37:00 +0000 (01:37 +0200)]
more refactoring, fix compiler warnings, update database file ownership to match directory ownership if database gets created as root, should fix issues with file permissions issues if sudo gets used

8 years agorefactor function file locations
Teemu Toivola [Mon, 19 Dec 2016 16:27:15 +0000 (18:27 +0200)]
refactor function file locations

8 years agoadd xml and json output stability tests
Teemu Toivola [Sat, 10 Dec 2016 15:11:53 +0000 (17:11 +0200)]
add xml and json output stability tests

8 years agomodify testscase to bypass possible test framework limitations and fix test errors...
Teemu Toivola [Sat, 10 Dec 2016 15:01:19 +0000 (17:01 +0200)]
modify testscase to bypass possible test framework limitations and fix test errors seen in CentOS 7, actual functionality wasn't affected

8 years agofix daemon startup instructions in INSTALL documentation
Teemu Toivola [Mon, 7 Nov 2016 21:53:33 +0000 (23:53 +0200)]
fix daemon startup instructions in INSTALL documentation