OpenWRT: Monitoring using vnstat

By | February 20, 2013

Another method to collect your OpenWRT statistics

opkg update
opkg install luci-app-vnstat vnstat vnstati


Advance configuration
1) Vnstat Luci configuration script located at /etc/config/vnstat

[email protected]:/# cat /etc/config/vnstat
config 'vnstat'

list 'interface' 'br-lan'
list 'interface' 'eth0'
list 'interface' 'eth0.1'
list 'interface' 'eth0.500'
list 'interface' 'eth0.600'
list 'interface' 'wlan0'

2) Core vnstat configuration file located at /etc/vnstat.conf. Default graph is stored in /var/lib/vnstat folder, I changed my graph location to usb

# location of the database directory
DatabaseDir "/mnt/usb/var/vnstat"


Incoming search terms:

  • openwrt vnstat
  • cat /etc/config
  • luci app pbx
  • vnstat openwrt
  • openwrt snmp monitoring
  • openwrt vnstat interface
  • openwrt vnstat luci