OpenWRT: Monitoring using vnstat

By | February 20, 2013

Another method to collect your OpenWRT statistics

Installation:
opkg update
opkg install luci-app-vnstat vnstat vnstati

Configuration:
openwrt-vnstat-config

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

root@OpenWrt:/# 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"

Links:
http://wiki.openwrt.org/doc/howto/vnstat

Loading

Incoming search terms:

  • openwrt vnstat
  • cat /etc/config
  • luci app pbx