14f5e2c1da89daf318552a15d01c4f41ac8adabd
[openwrt/svn-archive/archive.git] / net / vnstat / files / vnstat.conf
1 # vnStat 1.7 config file
2 ##
3
4 # location of the database directory
5 DatabaseDir "/var/lib/vnstat"
6
7 # locale (LC_ALL)
8 Locale "en_US"
9
10 # on which day should months change
11 MonthRotate 1
12
13 # date output formats for -d, -m, -t and -w
14 # see 'man date' for control codes
15 DayFormat "%d.%m."
16 MonthFormat "%b '%y"
17 TopFormat "%d.%m.%y"
18
19 # characters used for visuals
20 RXCharacter "%"
21 TXCharacter ":"
22 RXHourCharacter "r"
23 TXHourCharacter "t"
24
25 # how units are prefixed when traffic is shown
26 # 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
27 # 1 = old style binary prefixes (KB/MB/GB/TB)
28 UnitMode 0
29
30 # default interface
31 Interface "eth0"
32
33 # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
34 # (unless interface specific limit is given)
35 MaxBandwidth 100
36
37 # interface specific limits
38 # example 8Mbit limit for eth0 (remove # to activate):
39 #MaxBWeth0 8
40
41 # how many seconds should sampling for -tr take by default
42 Sampletime 5
43
44 # default query mode
45 # 0 = normal, 1 = days, 2 = months, 3 = top10
46 # 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
47 QueryMode 0
48
49 # filesystem disk space check (1 = enabled, 0 = disabled)
50 CheckDiskSpace 1
51
52 # database file locking (1 = enabled, 0 = disabled)
53 UseFileLocking 1
54
55 # how much the boot time can variate between updates (seconds)
56 BootVariation 15
57
58
59 # vnstatd
60 ##
61
62 # how often (in seconds) interface data is updated
63 UpdateInterval 60
64
65 # how often (in seconds) interface status changes are checked
66 PollInterval 30
67
68 # how often (in minutes) interface data is saved to file
69 SaveInterval 30
70
71 # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
72 UseLogging 2
73
74 # file used for logging if UseLogging is set to 1
75 LogFile "/var/log/vnstat.log"
76
77 # file used as daemon pid / lock file
78 PidFile "/var/run/vnstat.pid"
79
80
81 # vnstati
82 ##
83
84 HeaderFormat "%d.%m.%Y %H:%M"
85
86 # colors
87 CBackground "FFFFFF"
88 CEdge "AEAEAE"
89 CHeader "606060"
90 CHeaderTitle "FFFFFF"
91 CHeaderDate "FFFFFF"
92 CText "000000"
93 CLine "B0B0B0"
94 CLineL "-"
95 CRx "92CF00"
96 CTx "606060"
97 CRxD "-"
98 CTxD "-"