2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2024 by someone <someone@somenet.org>
9 # vnStat 2.10 configuration file
11 # lines starting with # or ; are comments, everything has default
12 # values, remove ; before each option to change its value
15 # default interface (leave empty for automatic selection)
18 # location of the database directory
19 ;DatabaseDir "/var/lib/vnstat"
21 # locale (LC_ALL) ("-" = use system locale)
24 # date output formats for -d, -m, -t and -w
29 # characters used for visuals
35 # how units are prefixed when traffic is shown
36 # 0 = IEC standard prefixes (KiB/MiB/GiB...)
37 # 1 = old style binary prefixes (KB/MB/GB...)
38 # 2 = SI decimal prefixes (kB/MB/GB...)
41 # used rate unit (0 = bytes, 1 = bits)
44 # how units are prefixed when traffic rate is shown in bits
45 # 0 = IEC binary prefixes (Kibit/s...)
46 # 1 = SI decimal prefixes (kbit/s...)
50 # 0 = minimal & narrow, 1 = bar column visible
51 # 2 = same as 1 except rate in summary
52 # 3 = rate column visible
56 # number of decimals to use in outputs
60 # spacer for separating hourly sections (0 = none, 1 = '|', 2 = '][', 3 = '[ ]')
63 # how many seconds should sampling for -tr take by default
67 # 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short
68 # 7 = hours, 8 = xml, 9 = one line, 10 = json
71 # default list output entry limits (0 = all)
79 # how to match interface given for query to interface in database
80 # 0 = case sensitive exact match to interface name
81 # 1 = method 0 followed by case sensitive exact match of alias
82 # 2 = method 1 followed by case insensitive exact match of alias
83 # 3 = method 2 followed by case insensitive beginning match of alias
84 ;InterfaceMatchMethod 3
86 # visibility of estimate line and text used in it
88 ;EstimateText "estimated"
94 # switch to given user when started as root (leave empty to disable)
97 # switch to given group when started as root (leave empty to disable)
100 # try to detect interface maximum bandwidth, 0 = disable feature
101 # MaxBandwidth will be used as fallback value when enabled
102 ;BandwidthDetection 1
104 # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
105 # (unless interface specific limit is given)
108 # interface specific limits
109 # example 8Mbit limit for eth0 (remove # to activate):
112 # data retention durations (-1 = unlimited, 0 = feature disabled)
120 # how often (in seconds) interface data is updated
123 # how often (in seconds) interface status changes are checked
126 # how often (in minutes) data is saved to database
129 # how often (in minutes) data is saved when all interface are offline
130 ;OfflineSaveInterval 30
132 # rescan database after save for new interfaces to be monitored (1 = enabled, 0 = disabled)
133 ;RescanDatabaseOnSave 1
135 # automatically start monitoring all interfaces not found in the database
136 # (1 = enabled, 0 = disabled)
137 ;AlwaysAddNewInterfaces 0
139 # on which day should months change
141 ;MonthRotateAffectsYears 0
143 # filesystem disk space check (1 = enabled, 0 = disabled)
146 # how much the boot time can variate between updates (seconds)
149 # create database entries even when there is no traffic (1 = enabled, 0 = disabled)
150 ;TrafficlessEntries 1
152 # how many minutes to wait during daemon startup for system clock to
153 # sync time if most recent database update appears to be in the future
156 # how often (in minutes) bandwidth detection is done when
157 # BandwidthDetection is enabled (0 = disabled)
158 ;BandwidthDetectionInterval 5
160 # force data save when interface status changes (1 = enabled, 0 = disabled)
161 ;SaveOnStatusChange 1
163 # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
166 # create dirs if needed (1 = enabled, 0 = disabled)
169 # update ownership of files if needed (1 = enabled, 0 = disabled)
172 # file used for logging if UseLogging is set to 1
173 ;LogFile "/var/log/vnstat/vnstat.log"
175 # file used as daemon pid / lock file
176 ;PidFile "/run/vnstat/vnstat.pid"
178 # 1 = 64-bit, 0 = 32-bit, -1 = old style logic, -2 = automatic detection
179 ;64bitInterfaceCounters -2
181 # use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled)
182 DatabaseWriteAheadLogging 1
184 # change the setting of the SQLite "synchronous" flag
185 # (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra)
186 ;DatabaseSynchronous -1
188 # database uses UTC instead of local timezone (1 = enabled, 0 = disabled)
195 # title timestamp format
196 ;HeaderFormat "%Y-%m-%d %H:%M"
198 # show hours with rate (1 = enabled, 0 = disabled)
201 # show rate in summary (1 = enabled, 0 = disabled)
204 # transparent background (1 = enabled, 0 = disabled)
209 ;LineSpacingAdjustment 0
212 # 5 minutes graph size control
213 ;5MinuteGraphResultCount 576
214 ;5MinuteGraphHeight 300
216 # hourly graph mode (0 = 24 hour sliding window, 1 = begins from midnight)
219 # horizontal/vertical summary graph (0 = hours, 1 = 5 minutes)
222 # traffic estimate bar style
223 # (0 = not shown, 1 = continuation of existing bar, 2 = separate bar)
226 # bar column in list outputs shows rate if OutputStyle is 3
227 # (1 = enabled, 0 = disabled)
228 ;BarColumnShowsRate 0
231 ;CBackground "FFFFFF"
234 ;CHeaderTitle "FFFFFF"
235 ;CHeaderDate "FFFFFF"