2009-06-04 09:57:46 +00:00
|
|
|
# vnStat 1.7 config file
|
|
|
|
##
|
|
|
|
|
|
|
|
# location of the database directory
|
|
|
|
DatabaseDir "/var/lib/vnstat"
|
|
|
|
|
|
|
|
# locale (LC_ALL)
|
|
|
|
Locale "en_US"
|
|
|
|
|
|
|
|
# on which day should months change
|
|
|
|
MonthRotate 1
|
|
|
|
|
|
|
|
# date output formats for -d, -m, -t and -w
|
|
|
|
# see 'man date' for control codes
|
|
|
|
DayFormat "%d.%m."
|
|
|
|
MonthFormat "%b '%y"
|
|
|
|
TopFormat "%d.%m.%y"
|
|
|
|
|
|
|
|
# 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/TiB)
|
|
|
|
# 1 = old style binary prefixes (KB/MB/GB/TB)
|
|
|
|
UnitMode 0
|
|
|
|
|
|
|
|
# default interface
|
|
|
|
Interface "eth0"
|
|
|
|
|
|
|
|
# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
|
|
|
|
# (unless interface specific limit is given)
|
|
|
|
MaxBandwidth 100
|
|
|
|
|
|
|
|
# interface specific limits
|
|
|
|
# example 8Mbit limit for eth0 (remove # to activate):
|
|
|
|
#MaxBWeth0 8
|
|
|
|
|
|
|
|
# how many seconds should sampling for -tr take by default
|
|
|
|
Sampletime 5
|
|
|
|
|
|
|
|
# default query mode
|
|
|
|
# 0 = normal, 1 = days, 2 = months, 3 = top10
|
|
|
|
# 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
|
|
|
|
QueryMode 0
|
|
|
|
|
|
|
|
# filesystem disk space check (1 = enabled, 0 = disabled)
|
|
|
|
CheckDiskSpace 1
|
|
|
|
|
|
|
|
# database file locking (1 = enabled, 0 = disabled)
|
|
|
|
UseFileLocking 1
|
|
|
|
|
|
|
|
# how much the boot time can variate between updates (seconds)
|
|
|
|
BootVariation 15
|
|
|
|
|
|
|
|
|
|
|
|
# vnstatd
|
|
|
|
##
|
|
|
|
|
|
|
|
# how often (in seconds) interface data is updated
|
|
|
|
UpdateInterval 60
|
|
|
|
|
|
|
|
# how often (in seconds) interface status changes are checked
|
|
|
|
PollInterval 30
|
|
|
|
|
|
|
|
# how often (in minutes) interface data is saved to file
|
|
|
|
SaveInterval 30
|
|
|
|
|
|
|
|
# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
|
|
|
|
UseLogging 2
|
|
|
|
|
|
|
|
# file used for logging if UseLogging is set to 1
|
|
|
|
LogFile "/var/log/vnstat.log"
|
|
|
|
|
|
|
|
# file used as daemon pid / lock file
|
|
|
|
PidFile "/var/run/vnstat.pid"
|
|
|
|
|
|
|
|
|
|
|
|
# vnstati
|
|
|
|
##
|
|
|
|
|
|
|
|
HeaderFormat "%d.%m.%Y %H:%M"
|
|
|
|
|
|
|
|
# colors
|
|
|
|
CBackground "FFFFFF"
|
|
|
|
CEdge "AEAEAE"
|
|
|
|
CHeader "606060"
|
|
|
|
CHeaderTitle "FFFFFF"
|
|
|
|
CHeaderDate "FFFFFF"
|
|
|
|
CText "000000"
|
|
|
|
CLine "B0B0B0"
|
|
|
|
CLineL "-"
|
|
|
|
CRx "92CF00"
|
|
|
|
CTx "606060"
|
|
|
|
CRxD "-"
|
|
|
|
CTxD "-"
|