Home

The net/vnstat port

vnstat-2.11v0 – network traffic monitor (cvsweb github mirror)

Description

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.
WWW: https://humdi.net/vnstat/

Readme

+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

1) Edit ${SYSCONFDIR}/vnstat.conf if necessary.

2) Start the vnstatd daemon:
    # rcctl start vnstatd

3) Run "vnstat --iflist" to see all the available interfaces.

4) For each interface to be monitored, launch this command:
    # su -m  _vnstat -c  "vnstat --add -i INTERFACE"
This will create the database for the specified interface. Otherwise,
adjust "Interface" in ${SYSCONFDIR}/vnstat.conf.

5) Create graphics with the command "vnstati". (Install the vnstati
package with "pkg_add vnstati".)

Random hints:
    * "UseLogging" in ${SYSCONFDIR}/vnstat.conf enables logging.
      "UseLogging 1" uses ${LOCALSTATEDIR}/log/vnstat/vnstat.log
      "UseLogging 2" uses syslog.

Maintainer

Pierre-Emmanuel Andre

Multi-packages

vnstat-2.11v0 vnstati-2.11v0

Categories

net sysutils

Library dependencies

Build dependencies

Reverse dependencies

Search