vnstat - Network traffic monitor with log
Hi,
PHP Code:
ipkg list | grep vnstat
vnstat - 1.6-1 - Network traffic monitor with log
PHP Code:
ipkg install vnstat
Installing vnstat (1.6-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/vnstat_1 .6-1_mipsel.ipk
Configuring vnstat
Successfully terminated.
PHP Code:
vnstat -u && vnstat
No database found, nothing to do. Use --help for help.
A new database can be created with the following command:
vnstat -u -i eth0
Replace 'eth0' with the interface that should be monitored. A list
of available interfaces can be seen with the 'ifconfig' command.
No database found, nothing to do. Use --help for help.
A new database can be created with the following command:
vnstat -u -i eth0
Replace 'eth0' with the interface that should be monitored. A list
of available interfaces can be seen with the 'ifconfig' command.
PHP Code:
vnstat -u -i br0
Error:
Unable to read database "/opt/var/lib/vnstat/br0".
-> A new database has been created.
So die Datei hat er angelegt :-) . Ist das jetzt im Flasch oder auf der HDD?
Was will er aber mir mit der Fehlermeldung "Unable to read database "/opt/var/lib/vnstat/br0"." sagen?
PHP Code:
vnstat --help
vnStat 1.6 by Teemu Toivola <tst at iki dot fi>
-q, --query query database
-h, --hours show hours
-d, --days show days
-m, --months show months
-w, --weeks show weeks
-t, --top10 show top10
-s, --short use short output
-u, --update update database
-i, --iface select interface (default: eth0)
-?, --help short help
-v, --version show version
-tr, --traffic calculate traffic
-l, --live show transfer rate in real time
See also "--longhelp" for complete options list and "man vnstat".
PHP Code:
vnstat
br0: Not enough data available yet.
PHP Code:
vnstat -i br0
br0: Not enough data available yet.
PHP Code:
pwd
/opt/var/lib/vnstat
[admin@Willi vnstat]$ ls -las --color
total 12
4 drwxr-xr-x 2 admin root 4096 Mar 6 23:52 .
4 drwxr-xr-x 5 admin root 4096 Mar 6 23:50 ..
4 -rw-r--r-- 1 admin root 2784 Mar 6 23:52 br0
In der Datei steht ja schon was drin. Warum kann der das nee auswerten? Noch warten?
@the_29
Wie siehts aus, wie nutzt du das Programm?
Gruß.