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

[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"

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

Incoming search terms:

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

A minimalist Luci theme

bootstrap-luci-theme

Installation:
wget http://nut-bolt.nl/files/luci-theme-bootstrap_1-1_all.ipk
opkg install luci-theme-bootstrap_1-1_all.ipk

This should give you an option ‘Bootstrap’ in the System/System -> Language and Style page.

source: http://nut-bolt.nl/2012/openwrt-bootstrap-theme-for-luci

Update: 17 February 2014
This theme is now included in the openwrt 12.09 and trunk repos and should be downloaded from there, http://downloads.openwrt.org/snapshots/trunk/yourdevice/packages/ and search for luci-theme-bootstrap. Or the easy way, install from standard software installation.

Incoming search terms:

  • openwrt luci
  • luci theme openwrt
  • luci bootstrap or openwrt style

Change default http port

The listening port is defined in /etc/config/uhttpd file.

[email protected]:/etc/config# cat uhttpd 
# HTTP listen addresses, multiple allowed
list listen_http        0.0.0.0:80

Securing LuCI

[email protected]:/etc/config# cat uhttpd 
# HTTP listen addresses, multiple allowed
list listen_http        192.168.1.1:80

Enable SSL

1. For a full LuCI installation with HTTPS support
opkg install luci-ssl

2. For upgrading from HTTP to HTTPS
opkg install uhttpd-mod-tls luci-ssl
Private key and certificate will be generated on next hardware reboot.

Out of the box, OpenWRT can show you real-time statistics, however it will not store the data for historical view. I’m looking for similar graphing function as seen on DD-Wrt.

Objective:
To have a nice historical data graphs for router (interfaces bandwidth utilization, cpu load, uptime)

Options we have:
-Use SNMP and graph it using cacti
-muninlite
vnstat
-collectd

This tutorial will be using luci-app-statistics and collectd.

1. Update package
opkg update
2. Install luci-app-statistics
opkg install luci-app-statistics
3. List out supported plugins for collectd
opkg list | grep collectd-mod
4. Install desired plugins
opkg install collectd-mod-cpu collectd-mod-interface collectd-mod-memory collectd-mod-ping collectd-mod-rrdtool collectd-mod-wireless
5. Enable init script
/etc/init.d/luci_statistics enable
/etc/init.d/collectd enable

6. Change RRDTool output folder (optional)
monitor2
/mnt/sda5 is my external USB drive attached to the router.

Screenshots
monitor1

monitor3 monitor4 monitor5 monitor6

Incoming search terms:

  • openwrt collectd
  • openwrt cacti
  • openwrt cpu load
  • openwrt logging traffic collectd
  • openwrt luci plugins
  • openwrt statistics

I stumbled upon a website where the author is generous enough to program a GUI for the acp commander. I haven’t tried yet since my NAS already rooted. I, without his permission “mirror’ his page for my future reference.

Original link: http://www.gry.ch/Java/styled/

ACP Commander GUI is a Graphical User Interface using acp_commander developed by Georg from NAS-Central. ACP Commander GUI is based on the code of acp_commander with some modifications for better integration into the GUI.

Thanks to Georg for his nice work!

ACP Commander GUI can be used to remotely control your arm9-based LS Pro/LS Live/Tera Pro v2/Tera Live devices. I only tested it with an LS Live, but the others should work to.

Requirements:
This is a Java application. Please download Java for your System here.
Mac OS X Mountain Lion users: Download Java directly from Apple if not already installed.

Screenshot:
page16-acp_commander_gui
Features:

  • Automatically detects LinkStations™ available in your network, just select the desired one from the pulldown box.
  • Execute Linux commands directly on the LinkStation™ and get the output in the log window.
  • Set the door password of the LinkStation™.
  • Enable SSH (sshd). It will also add a startup entry so that SSH is also available after each reboot.
  • Tested on Firmware versions 1.560 and 1.570.

Simply enter the admin password in the “Admin password” field and you are done. That is the one you do also use to login to the Web Interface of the LinkStation™. After that, simply click on one of the buttons to execute the desired action.

For more LinkStation™ information visit Buffalo Technology.

Note: The data that can be returned from the LinkStation™ is limited by the protocol. That means if you manually execute a command (like “ls”) on the device it could be possible that you don’t get the full result back. Just keep that in mind.

Warning: This is experimental software that might damage your LinkStation™.

Version History:

  • 1.5.6 (08.04.2012)
    Initial release.

Download 1.5.6 (DMG file for Mac OS X 10.6+)
Download 1.5.6 (JAR file for all platforms)
Download 1.5.6 (ZIP for Microsoft Windows)
Download 1.5.6 (EXE for Microsoft Windows)

Incoming search terms:

  • acp commander gui
  • acp_commander
  • acp_commander_gui
  • buffalo nas default password
  • using acp commander
Posted in NAS.