$OpenBSD: README-main,v 1.4 2020/10/31 08:55:41 rsadowski Exp $

+-----------------------------------------------------------------------
| Running vnstat on OpenBSD
+-----------------------------------------------------------------------

1) Edit /etc/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 that you want to monitor, launch this command:
    # su -m  _vnstat -c  "vnstat --add -i INTERFACE"
This will create the database for the specified interface. Otherwise you can
also adjust "Interface" in /etc/vnstat.conf.

5) Create graphics with the command vnstati (you have to install vnstati)

Random hints:
    * You can enable debug in /etc/vnstat.conf and check
      the logs in /var/log/vnstat/vnstat.log
