macos - vnstat
vnstat
wanna install vnstat on your mac ?
install
brew install vnstat gsed
and you’ll get the following Message after installation:
==> vnstat
To monitor interfaces other than "en0" edit /opt/homebrew/etc/vnstat.conf
To start vnstat now and restart at startup:
sudo brew services start vnstat
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/vnstat/bin/vnstatd --nodaemon --config /opt/homebrew/etc/vnstat.conf
Service Location
Let’s build a directory for the Database
mkdir ~/Library/vnstat
Path
Depending where you’re config files got installed …