network traffic monitor
Project homepage: https://humdi.net/vnstat/
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.
Package information
- Ports path
- net/vnstat
- Package architecture
- amd64
- Maintainer
- Pierre-Emmanuel Andre <pea@openbsd.org>
- Categories
- net, sysutils
- Available flavors
- None listed
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Library
Build
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-------------------------------------------------------------------------------
| Running vnstat 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.
Used by (1 dependency relationships)
Includes library, runtime, build and test dependencies.