![]() ![]() Followed by this, it contains the bytes transmitted and received.This lines has the following information separated by semi-colon. After the header lines, it has 30 lines that starts with “d ” (d 0 1318316406 1 0 386 698 1). The 1st few lines of the –dumpdb output contains some header information. If you like to export the network monitoring data to an excel or other database, you can dump the data in a text format delimited with semi-colon, which you can import to Excel or other db. Similar to days and months, use “vnstat -m” (or) “vnstat –months” for network statistic data breakdown by week. Use “vnstat -m” (or) “vnstat –months” for network statistic data breakdown by month. Use “vnstat -d” (or) “vnstat –days” for network statistic data breakdown by day. Use “vnstat -h” (or) “vnstat –hours” for network statistic data breakdown by hour. vnStat hours, days, months, weeks Network Data Wait for some time and try the command again. Note: If you just installed the vnStat, it will give the following message “eth0: Not enough data available yet.”. The network statistic data (bytes transmitted, bytes received) for the last two months, and last two days.ĭatabase updated: Sat Oct 15 11:54:00 2011.From when it started collecting the statistics for a specific interface.The last time when the vnStat datbase located under /var/lib/vnstat/ was updated.Vnstat without any argument will give you a quick summary with the following info: Note: You can add “vnstatd -d” to your /etc/rc.local file, so that it starts automatically anytime you reboot your system. Start the vnstatd (vnstat daemon), which will monitor and log these information in the background. To view all the available interfaces on your system that vnStat can monitor, do the following. Info: -> A new database has been created. # vnstat -u -i eth0Įrror: Unable to read database "/var/lib/vnstat/eth0". As you see below, this creates a database file eth0 under /var/lib/vnstat directory that will contain all the network traffic log messages for this specific interface. To start monitoring eth0, do the following. VnStat doesn’t monitor any interfaces unless you specifically request it to do so. Since vnstat depends on the information provided by kernel, execute the following command to verify whether kernel is providing all the information that vnStat is expecting. ![]() Please note that you don’t need to do “./configure” that you typically do for other source based installations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |