"Fossies" - the Fresh Open Source Software Archive 
Member "vnstat-2.9/cfg/vnstat.conf" (3 Jan 2022, 6068 Bytes) of package /linux/misc/vnstat-2.9.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "vnstat.conf":
2.8_vs_2.9.
1 # vnStat 2.9 configuration file
2 #
3 # lines starting with # or ; are comments, everything has default
4 # values, remove ; before each option to change its value
5
6
7 # default interface (leave empty for automatic selection)
8 ;Interface ""
9
10 # location of the database directory
11 ;DatabaseDir "/var/lib/vnstat"
12
13 # locale (LC_ALL) ("-" = use system locale)
14 ;Locale "-"
15
16 # date output formats for -d, -m, -t and -w
17 ;DayFormat "%Y-%m-%d"
18 ;MonthFormat "%Y-%m"
19 ;TopFormat "%Y-%m-%d"
20
21 # characters used for visuals
22 ;RXCharacter "%"
23 ;TXCharacter ":"
24 ;RXHourCharacter "r"
25 ;TXHourCharacter "t"
26
27 # how units are prefixed when traffic is shown
28 # 0 = IEC standard prefixes (KiB/MiB/GiB...)
29 # 1 = old style binary prefixes (KB/MB/GB...)
30 # 2 = SI decimal prefixes (kB/MB/GB...)
31 ;UnitMode 0
32
33 # used rate unit (0 = bytes, 1 = bits)
34 ;RateUnit 1
35
36 # how units are prefixed when traffic rate is shown in bits
37 # 0 = IEC binary prefixes (Kibit/s...)
38 # 1 = SI decimal prefixes (kbit/s...)
39 ;RateUnitMode 1
40
41 # output style
42 # 0 = minimal & narrow, 1 = bar column visible
43 # 2 = same as 1 except rate in summary
44 # 3 = rate column visible
45 ;OutputStyle 3
46 ;EstimateBarVisible 1
47
48 # number of decimals to use in outputs
49 ;DefaultDecimals 2
50 ;HourlyDecimals 1
51
52 # spacer for separating hourly sections (0 = none, 1 = '|', 2 = '][', 3 = '[ ]')
53 ;HourlySectionStyle 2
54
55 # how many seconds should sampling for -tr take by default
56 ;Sampletime 5
57
58 # default query mode
59 # 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short
60 # 7 = hours, 8 = xml, 9 = one line, 10 = json
61 ;QueryMode 0
62
63 # default list output entry limits (0 = all)
64 ;List5Mins 24
65 ;ListHours 24
66 ;ListDays 30
67 ;ListMonths 12
68 ;ListYears 0
69 ;ListTop 10
70
71 # how to match interface given for query to interface in database
72 # 0 = case sensitive exact match to interface name
73 # 1 = method 0 followed by case sensitive exact match of alias
74 # 2 = method 1 followed by case insensitive exact match of alias
75 # 3 = method 2 followed by case insensitive beginning match of alias
76 ;InterfaceMatchMethod 3
77
78
79 # vnstatd
80 ##
81
82 # switch to given user when started as root (leave empty to disable)
83 ;DaemonUser ""
84
85 # switch to given group when started as root (leave empty to disable)
86 ;DaemonGroup ""
87
88 # try to detect interface maximum bandwidth, 0 = disable feature
89 # MaxBandwidth will be used as fallback value when enabled
90 ;BandwidthDetection 1
91
92 # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
93 # (unless interface specific limit is given)
94 ;MaxBandwidth 1000
95
96 # interface specific limits
97 # example 8Mbit limit for eth0 (remove # to activate):
98 #MaxBWeth0 8
99
100 # data retention durations (-1 = unlimited, 0 = feature disabled)
101 ;5MinuteHours 48
102 ;HourlyDays 4
103 ;DailyDays 62
104 ;MonthlyMonths 25
105 ;YearlyYears -1
106 ;TopDayEntries 20
107
108 # how often (in seconds) interface data is updated
109 ;UpdateInterval 20
110
111 # how often (in seconds) interface status changes are checked
112 ;PollInterval 5
113
114 # how often (in minutes) data is saved to database
115 ;SaveInterval 5
116
117 # how often (in minutes) data is saved when all interface are offline
118 ;OfflineSaveInterval 30
119
120 # rescan database after save for new interfaces to be monitored (1 = enabled, 0 = disabled)
121 ;RescanDatabaseOnSave 1
122
123 # automatically start monitoring all interfaces not found in the database
124 # (1 = enabled, 0 = disabled)
125 ;AlwaysAddNewInterfaces 0
126
127 # on which day should months change
128 ;MonthRotate 1
129 ;MonthRotateAffectsYears 0
130
131 # filesystem disk space check (1 = enabled, 0 = disabled)
132 ;CheckDiskSpace 1
133
134 # how much the boot time can variate between updates (seconds)
135 ;BootVariation 15
136
137 # create database entries even when there is no traffic (1 = enabled, 0 = disabled)
138 ;TrafficlessEntries 1
139
140 # how many minutes to wait during daemon startup for system clock to
141 # sync time if most recent database update appears to be in the future
142 ;TimeSyncWait 5
143
144 # how often (in minutes) bandwidth detection is done when
145 # BandwidthDetection is enabled (0 = disabled)
146 ;BandwidthDetectionInterval 5
147
148 # force data save when interface status changes (1 = enabled, 0 = disabled)
149 ;SaveOnStatusChange 1
150
151 # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
152 ;UseLogging 2
153
154 # create dirs if needed (1 = enabled, 0 = disabled)
155 ;CreateDirs 1
156
157 # update ownership of files if needed (1 = enabled, 0 = disabled)
158 ;UpdateFileOwner 1
159
160 # file used for logging if UseLogging is set to 1
161 ;LogFile "/var/log/vnstat/vnstat.log"
162
163 # file used as daemon pid / lock file
164 ;PidFile "/var/run/vnstat/vnstat.pid"
165
166 # 1 = 64-bit, 0 = 32-bit, -1 = old style logic, -2 = automatic detection
167 ;64bitInterfaceCounters -2
168
169 # use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled)
170 ;DatabaseWriteAheadLogging 0
171
172 # change the setting of the SQLite "synchronous" flag
173 # (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra)
174 ;DatabaseSynchronous -1
175
176 # database uses UTC instead of local timezone (1 = enabled, 0 = disabled)
177 ;UseUTC 0
178
179
180 # vnstati
181 ##
182
183 # title timestamp format
184 ;HeaderFormat "%Y-%m-%d %H:%M"
185
186 # show hours with rate (1 = enabled, 0 = disabled)
187 ;HourlyRate 1
188
189 # show rate in summary (1 = enabled, 0 = disabled)
190 ;SummaryRate 1
191
192 # transparent background (1 = enabled, 0 = disabled)
193 ;TransparentBg 0
194
195 # image size control
196 ;LargeFonts 0
197 ;LineSpacingAdjustment 0
198 ;ImageScale 100
199
200 # 5 minutes graph size control
201 ;5MinuteGraphResultCount 576
202 ;5MinuteGraphHeight 300
203
204 # hourly graph mode (0 = 24 hour sliding window, 1 = begins from midnight)
205 ;HourlyGraphMode 0
206
207 # horizontal/vertical summary graph (0 = hours, 1 = 5 minutes)
208 ;SummaryGraph 0
209
210 # traffic estimate bar style
211 # (0 = not shown, 1 = continuation of existing bar, 2 = separate bar)
212 ;EstimateStyle 1
213
214 # bar column in list outputs shows rate if OutputStyle is 3
215 # (1 = enabled, 0 = disabled)
216 ;BarColumnShowsRate 0
217
218 # image colors
219 ;CBackground "FFFFFF"
220 ;CEdge "AEAEAE"
221 ;CHeader "606060"
222 ;CHeaderTitle "FFFFFF"
223 ;CHeaderDate "FFFFFF"
224 ;CText "000000"
225 ;CLine "B0B0B0"
226 ;CLineL "-"
227 ;CRx "92CF00"
228 ;CTx "606060"
229 ;CRxD "-"
230 ;CTxD "-"