Table of Contents

luci-app-statistics

OpenWrt includes real-time statistics however this does not store historical data for view by default. The luci-app-statistics package, based on collectd and rrdtool, will display historical graphs including ping, interface bandwidth utilization, cpu load, ram, disk, uptime, etc.

For more info see statistical.data.overview and collectd blog post.

For other Bandwidth Monitoring tools, see bwmon page.

Installation

1. Install package luci-app-statistics. If using SSH run: opkg update && opkg install luci-app-statistics.

2. Install desired plugins:

Several are suggested below, but many more exist. To see all the available collectd-modules, run: opkg list | grep collectd-mod

opkg install collectd-mod-ethstat collectd-mod-ipstatistics collectd-mod-irq collectd-mod-load collectd-mod-ping collectd-mod-powerdns collectd-mod-sqm collectd-mod-thermal collectd-mod-wireless

3. Enable daemons

/etc/init.d/collectd enable

Note that /tmp/rrd, the directory that keeps statistics data, resides in RAM and consequently will be lost after a reboot. To prevent this, you can configure a persistent storage location or configure backups - see below.

Configuration

UCI

LuCI

After installing the packages, a new menu appears in Statistics → Setup. All the installed collectd-modules will show here, but only some are enabled by default.

Suggested settings