vnstat.conf 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # vnStat 1.12 config file
  2. ##
  3. # default interface
  4. Interface "eth0"
  5. # location of the database directory
  6. DatabaseDir "/var/lib/vnstat"
  7. # locale (LC_ALL) ("-" = use system locale)
  8. Locale "-"
  9. # on which day should months change
  10. MonthRotate 1
  11. # date output formats for -d, -m, -t and -w
  12. # see 'man date' for control codes
  13. DayFormat "%x"
  14. MonthFormat "%b '%y"
  15. TopFormat "%x"
  16. # characters used for visuals
  17. RXCharacter "%"
  18. TXCharacter ":"
  19. RXHourCharacter "r"
  20. TXHourCharacter "t"
  21. # how units are prefixed when traffic is shown
  22. # 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
  23. # 1 = old style binary prefixes (KB/MB/GB/TB)
  24. UnitMode 0
  25. # output style
  26. # 0 = minimal & narrow, 1 = bar column visible
  27. # 2 = same as 1 except rate in summary and weekly
  28. # 3 = rate column visible
  29. OutputStyle 3
  30. # used rate unit (0 = bytes, 1 = bits)
  31. RateUnit 1
  32. # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
  33. # (unless interface specific limit is given)
  34. MaxBandwidth 1000
  35. # interface specific limits
  36. # example 8Mbit limit for 'ethnone':
  37. MaxBWethnone 8
  38. # how many seconds should sampling for -tr take by default
  39. Sampletime 5
  40. # default query mode
  41. # 0 = normal, 1 = days, 2 = months, 3 = top10
  42. # 4 = exportdb, 5 = short, 6 = weeks, 7 = hours
  43. QueryMode 0
  44. # filesystem disk space check (1 = enabled, 0 = disabled)
  45. CheckDiskSpace 1
  46. # database file locking (1 = enabled, 0 = disabled)
  47. UseFileLocking 1
  48. # how much the boot time can variate between updates (seconds)
  49. BootVariation 15
  50. # log days without traffic to daily list (1 = enabled, 0 = disabled)
  51. TrafficlessDays 1
  52. # vnstatd
  53. ##
  54. # switch to given user when started as root (leave empty to disable)
  55. DaemonUser ""
  56. # switch to given user when started as root (leave empty to disable)
  57. DaemonGroup ""
  58. # how often (in seconds) interface data is updated
  59. UpdateInterval 30
  60. # how often (in seconds) interface status changes are checked
  61. PollInterval 5
  62. # how often (in minutes) data is saved to file
  63. SaveInterval 5
  64. # how often (in minutes) data is saved when all interface are offline
  65. OfflineSaveInterval 30
  66. # force data save when interface status changes (1 = enabled, 0 = disabled)
  67. SaveOnStatusChange 1
  68. # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
  69. UseLogging 2
  70. # create dirs if needed (1 = enabled, 0 = disabled)
  71. CreateDirs 1
  72. # update ownership of files if needed (1 = enabled, 0 = disabled)
  73. UpdateFileOwner 1
  74. # file used for logging if UseLogging is set to 1
  75. LogFile "/var/log/vnstat/vnstat.log"
  76. # file used as daemon pid / lock file
  77. PidFile "/run/vnstat/vnstat.pid"
  78. # vnstati
  79. ##
  80. # title timestamp format
  81. HeaderFormat "%x %H:%M"
  82. # show hours with rate (1 = enabled, 0 = disabled)
  83. HourlyRate 1
  84. # show rate in summary (1 = enabled, 0 = disabled)
  85. SummaryRate 1
  86. # layout of summary (1 = with monthly, 0 = without monthly)
  87. SummaryLayout 1
  88. # transparent background (1 = enabled, 0 = disabled)
  89. TransparentBg 0
  90. # image colors
  91. CBackground "FFFFFF"
  92. CEdge "AEAEAE"
  93. CHeader "606060"
  94. CHeaderTitle "FFFFFF"
  95. CHeaderDate "FFFFFF"
  96. CText "000000"
  97. CLine "B0B0B0"
  98. CLineL "-"
  99. CRx "92CF00"
  100. CTx "606060"
  101. CRxD "-"
  102. CTxD "-"