FreeBSD Install vnStat - A Console-Based Network Traffic Monitor

www.l‮ua‬tturi.com
FreeBSD Install vnStat - A Console-Based Network Traffic Monitor

To install the vnStat console-based network traffic monitor on a FreeBSD system, you will need to do the following:

  1. Update the system's package database by running the following command:
# pkg update
  1. Install the vnStat package using the pkg package manager:
# pkg install vnstat

This will install the vnStat network traffic monitor on your FreeBSD system.

To configure vnStat, you will need to edit the /usr/local/etc/vnstat.conf file.

For example, to specify the network interface that vnStat should monitor, you can set the Interface option in the /usr/local/etc/vnstat.conf file:

Interface "eth0"

This will configure vnStat to monitor the eth0 network interface.

To start the vnStat daemon, you can run the following command:

# service vnstat start

To view the network traffic statistics collected by vnStat, you can use the vnstat command on the command line.

For example, to view the total traffic for the current month, you can use the following command:

$ vnstat -m

This will display the total traffic for the current month in the vnStat output.

For more information about using and configuring the vnStat network traffic monitor on a FreeBSD system, you can refer to the vnStat documentation and the vnstat man page by running man vnstat on the command line.

Created Time:2017-10-28 20:40:35  Author:lautturi