e4ebe93e71
vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources. With tweaks and advices from jasper@. Thanks ok jasper@
30 lines
709 B
Plaintext
30 lines
709 B
Plaintext
$OpenBSD: patch-cfg_vnstat_conf,v 1.1.1.1 2010/10/25 10:14:53 pea Exp $
|
|
--- cfg/vnstat.conf.orig Sat Jan 2 18:36:13 2010
|
|
+++ cfg/vnstat.conf Fri Sep 24 13:47:14 2010
|
|
@@ -2,10 +2,10 @@
|
|
##
|
|
|
|
# default interface
|
|
-Interface "eth0"
|
|
+Interface "lo0"
|
|
|
|
# location of the database directory
|
|
-DatabaseDir "/var/lib/vnstat"
|
|
+DatabaseDir "/var/db/vnstat"
|
|
|
|
# locale (LC_ALL) ("-" = use system locale)
|
|
Locale "-"
|
|
@@ -90,10 +90,10 @@ SaveOnStatusChange 1
|
|
UseLogging 2
|
|
|
|
# file used for logging if UseLogging is set to 1
|
|
-LogFile "/var/log/vnstat.log"
|
|
+LogFile "/var/log/vnstat/vnstat.log"
|
|
|
|
# file used as daemon pid / lock file
|
|
-PidFile "/var/run/vnstat.pid"
|
|
+PidFile "/var/run/vnstat/vnstat.pid"
|
|
|
|
|
|
# vnstati
|