From 05815bacaa9b6069b8175f916ec1bc6668df1ad2 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 18 Aug 2025 21:54:36 +0200 Subject: [PATCH] roles/base/network/files --- roles/base/network/files/default/vnstat.conf | 22 +++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/roles/base/network/files/default/vnstat.conf b/roles/base/network/files/default/vnstat.conf index a13b80e..787cff9 100644 --- a/roles/base/network/files/default/vnstat.conf +++ b/roles/base/network/files/default/vnstat.conf @@ -6,7 +6,7 @@ # 2017-2025 by someone # -# vnStat 2.10 configuration file +# vnStat 2.13 configuration file # # lines starting with # or ; are comments, everything has default # values, remove ; before each option to change its value @@ -63,9 +63,12 @@ # how many seconds should sampling for -tr take by default ;Sampletime 5 +# show animation at the beginning of -l / --live line (1 = enabled, 0 = disabled) +;LiveSpinner 1 + # default query mode -# 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short -# 7 = hours, 8 = xml, 9 = one line, 10 = json +# 0 = summary, 1 = days, 2 = months, 3 = top, 4 = single summary, 5 = short +# 7 = hours graph, 8 = xml, 9 = one line, 10 = json, 11 = hours, 12 = 5 minute ;QueryMode 0 # default list output entry limits (0 = all) @@ -87,6 +90,9 @@ ListTop 0 ;EstimateVisible 1 ;EstimateText "estimated" +# interface order (0 = alphabetical by name, 1 = alphabetical by alias) +;InterfaceOrder 0 + # vnstatd ## @@ -121,7 +127,7 @@ TopDayEntries 1 ;UpdateInterval 20 # how often (in seconds) interface status changes are checked -PollInterval 10 +;PollInterval 5 # how often (in minutes) data is saved to database ;SaveInterval 5 @@ -179,7 +185,7 @@ PollInterval 10 ;64bitInterfaceCounters -2 # use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled) -DatabaseWriteAheadLogging 1 +;DatabaseWriteAheadLogging 0 # change the setting of the SQLite "synchronous" flag # (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra) @@ -188,6 +194,10 @@ DatabaseWriteAheadLogging 1 # database uses UTC instead of local timezone (1 = enabled, 0 = disabled) ;UseUTC 0 +# database maintenance (1 = enabled, 0 = disabled) +;VacuumOnStartup 1 +;VacuumOnHUPSignal 1 + # vnstati ## @@ -236,7 +246,9 @@ DatabaseWriteAheadLogging 1 ;CText "000000" ;CLine "B0B0B0" ;CLineL "-" +;CPercentileLine "CF0045" ;CRx "92CF00" ;CTx "606060" ;CRxD "-" ;CTxD "-" +;CTotal "0098CF" -- 2.47.2