forked from de-vnull/vnstat-on-merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvnstat.conf
187 lines (139 loc) · 4.52 KB
/
vnstat.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# vnStat 2.6 config file
##
# default interface (leave empty for automatic selection)
Interface "eth0"
# location of the database directory
DatabaseDir "/opt/var/lib/vnstat"
# locale (LC_ALL) ("-" = use system locale)
Locale "-"
# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat "%Y-%m-%d"
MonthFormat "%Y-%m (%d)"
TopFormat "%Y-%m-%d"
# characters used for visuals
RXCharacter "%"
TXCharacter ":"
RXHourCharacter "r"
TXHourCharacter "t"
# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB...)
# 1 = old style binary prefixes (KB/MB/GB...)
# 2 = SI decimal prefixes (kB/MB/GB...)
UnitMode 2
# used rate unit (0 = bytes, 1 = bits)
RateUnit 1
# how units are prefixed when traffic rate is shown in bits
# 0 = IEC binary prefixes (Kibit/s...)
# 1 = SI decimal prefixes (kbit/s...)
RateUnitMode 1
# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary
# 3 = rate column visible
OutputStyle 0
# number of decimals to use in outputs
DefaultDecimals 2
HourlyDecimals 2
# spacer for separating hourly sections (0 = none, 1 = '|', 2 = '][', 3 = '[ ]')
HourlySectionStyle 2
# how many seconds should sampling for -tr take by default
Sampletime 5
# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short
# 7 = hours, 8 = xml, 9 = one line, 10 = json
QueryMode 0
# default list output entry limits (0 = all)
List5Mins 24
ListHours 25
ListDays 31
ListMonths 12
ListYears 5
ListTop 10
# vnstatd
##
# switch to given user when started as root (leave empty to disable)
DaemonUser ""
# switch to given group when started as root (leave empty to disable)
DaemonGroup ""
# try to detect interface maximum bandwidth, 0 = disable feature
# MaxBandwidth will be used as fallback value when enabled
BandwidthDetection 0
# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 1000
# interface specific limits
# example 8Mbit limit for 'ethnone':
MaxBWethnone 8
# data retention durations (-1 = unlimited, 0 = feature disabled)
5MinuteHours 720
HourlyDays 31
DailyDays 31
MonthlyMonths 13
YearlyYears -1
TopDayEntries 15
# how often (in seconds) interface data is updated
UpdateInterval 30
# how often (in seconds) interface status changes are checked
PollInterval 30
# how often (in minutes) data is saved to database
SaveInterval 1
# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 5
# on which day should months change
MonthRotate 1
MonthRotateAffectsYears 0
# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1
# how much the boot time can variate between updates (seconds)
BootVariation 15
# create database entries even when there is no traffic (1 = enabled, 0 = disabled)
TrafficlessEntries 1
# how many minutes to wait during daemon startup for system clock to
# sync time if most recent database update appears to be in the future
TimeSyncWait 10
# how often (in minutes) bandwidth detection is done when
# BandwidthDetection is enabled (0 = disabled)
BandwidthDetectionInterval 0
# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1
# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2
# create dirs if needed (1 = enabled, 0 = disabled)
CreateDirs 1
# update ownership of files if needed (1 = enabled, 0 = disabled)
UpdateFileOwner 1
# file used for logging if UseLogging is set to 1
LogFile "/opt/var/log/vnstat.log"
# file used as daemon pid / lock file
PidFile "/opt/var/run/vnstat.pid"
# 1 = 64-bit, 0 = 32-bit, -1 = old style logic, -2 = automatic detection
64bitInterfaceCounters -2
# use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled)
DatabaseWriteAheadLogging 1
# change the setting of the SQLite "synchronous" flag
# (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra)
DatabaseSynchronous -1
# vnstati
##
# title timestamp format
HeaderFormat "%d-%b-%Y %H:%M"
# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 0
# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 0
# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0
# image colors
CBackground "475A5F"
CEdge "475A5F"
CHeader "475A5F"
CHeaderTitle "FFFFFF"
CHeaderDate "EAE303"
CText "FFFFFF"
CLine "B0B0B0"
CLineL "EAE303"
CRx "C5C5CE"
CTx "0EC009"
CRxD "-"
CTxD "-"