Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

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