macOS
brew install vnstatlocal Homebrew formula metadata
sudo port install vnstatMacPorts ports tree · net/vnstat/Portfile · 来源: api.github.com
安装
brew install vnstatlocal Homebrew formula metadata
sudo port install vnstatMacPorts ports tree · net/vnstat/Portfile · 来源: api.github.com
sudo apk add vnstatAlpine Linux edge package indexes · vnstat · 来源: dl-cdn.alpinelinux.org
sudo apt install vnstatDebian stable package indexes · vnstat · 来源: deb.debian.org
sudo dnf install vnstatFedora Rawhide package metadata · vnstat · 来源: dl.fedoraproject.org
nix profile install nixpkgs#vnstatnixpkgs package indexes · pkgs/by-name/vn/vnstat/package.nix · 来源: api.github.com
sudo pacman -S vnstatArch Linux sync databases · vnstat · 来源: geo.mirror.pkgbuild.com
sudo zypper install vnstatopenSUSE Tumbleweed package metadata · vnstat · 来源: download.opensuse.org
概览
Console-based network traffic monitor
历史
vnStat is a console-based network traffic monitor for Linux and BSD systems. Its central design choice is to read network-interface statistics from the kernel instead of sniffing packets, which keeps resource use low regardless of traffic volume.
Teemu Toivola's changelog records vnStat 1.0 as the initial public release on 23 September 2002. Early releases added multiple-interface support, a new database structure, parseable output, daily and monthly estimates, FHS-compliant paths, 64-bit counter handling, an FAQ, and sample PPP scripts.
The project settled into its long-running home in March 2004, when version 1.3 moved the webpage to humdi.net and added a man page. Later releases broadened it from a cron-updated text tool into a service-oriented monitor: version 1.7 in April 2009 added daemon support, PNG image output, XML output, and BSD support; version 1.12 in August 2014 added example systemd, launchd, and upstart integration while deprecating cron update examples.
Version 2.0, released in October 2018, was a major internal transition: the old C-struct dump database was replaced with SQLite, with import support for legacy databases from versions 1.3 through 1.18. The 2.x series continued to add modern outputs and retention controls, including JSON/XML improvements, five-minute resolution data, query ranges, alerts, merge support, and image-output enhancements.
vnStat's adoption comes from its fit with always-on servers, routers, VPS hosts, and BSD/Linux machines where long-term interface totals matter more than packet-level inspection. The upstream README also documents an official container workflow and signed source-release verification, signs of a mature utility maintained for both traditional installations and containerized environments.
Operators use `vnstat` for text queries, `vnstatd` as the background collector, and `vnstati` for image output. The README describes configurable retention at five-minute, hourly, daily, and yearly levels, plus total traffic and top-days listings; the changelog shows that JSON, XML, one-line, alert, and CGI-oriented outputs were added for scripts and dashboards.
vnStat is package-nerd significant because it is boring in the best way: it gives reproducible traffic accounting without packet capture privileges or heavy monitoring infrastructure. It is a common answer when someone wants long-term bandwidth totals that survive reboots and can be queried from shell scripts.
安全态势
broad file, network, media, or database tool signal. formula declares a Homebrew service.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/vnstat.conf~/.vnstatrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
vnstat | cli | 全局可执行文件 | |
vnstatd | cli | 全局可执行文件 | |
vnstati | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:vnstat |
|---|---|
| 版本 | 2.13 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/vnstat |
| 主页 | https://humdi.net/vnstat/ |
| 仓库 | https://github.com/vergoh/vnstat |
| 上游文档 | https://humdi.net/vnstat/man/vnstat.html |
| 许可证 | GPL-2.0-only |
| 源码归档 | https://humdi.net/vnstat/vnstat-2.13.tar.gz |
| 依赖 | gd |
| macOS 提供的库 | sqlite |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | declared |
| 注意事项 | To monitor interfaces other than "en0" edit $HOMEBREW_PREFIX/etc/vnstat.conf |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | vnstat |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
vnstat 2.13-1
console-based network traffic monitor
sudo apt install vnstatvnstati 2.13-1
image output support for vnStat
sudo apt install vnstativnstat
nix profile install nixpkgs#vnstatvnstat 2.12-1
console-based network traffic monitor
sudo apt install vnstatvnstati 2.12-1
image output support for vnStat
sudo apt install vnstativnstat 2.13-r1
Console-based network traffic monitor
sudo apk add vnstatvnstat-doc 2.13-r1
Console-based network traffic monitor (documentation)
sudo apk add vnstat-docvnstat-openrc 2.13-r1
Console-based network traffic monitor (OpenRC init scripts)
sudo apk add vnstat-openrcvnstat-systemd 2.13-r1
Console-based network traffic monitor (systemd files)
sudo apk add vnstat-systemdvnstat 2.13-2.fc44
Console-based network traffic monitor
sudo dnf install vnstatvnstat-vnstati 2.13-2.fc44
Image output support for vnstat
sudo dnf install vnstat-vnstativnstat 2.13-2
A console-based network traffic monitor
sudo pacman -S vnstatvnstat 2.13-1.4
Network Traffic Monitor
sudo zypper install vnstatvnstat-cgi 2.13-1.4
Graph Visualization CGI Script for vnstat
sudo zypper install vnstat-cgivnstat
sudo port install vnstat来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.