YAMon2 version: v2.2.0 (Script v2.2.5)
OpenWrt version: CHAOS CALMER (15.05-rc3, r46163)
* http://usage-monitoring.com/ Review these changes then follow the readme.txt (in the download zip) for installation. Make these changes before starting.BASEDIR="/mnt/sda1/yamon"
* set path
to BASEDIR
* set path
to BASEDIR
* _firmware=1
* _baseDir=BASEDIR
* _logDir="/tmp/yamon/logs"
[optional]
* _dnsmasq_leases="/mnt/sda1/etc/dhcp.leases"
configured in /etc/config/dhcp, preserves leases across reboots, normally it's in /tmp/.
Openwrt does not have nvram, I don't know what it's replacement is but I found this script which supports the necessary operations. See: https://forum.openwrt.org/viewtopic.php?pid=14020#p14020
* copy nvram.openwrt
to /usr/bin/nvram
The default configuration will copy the web reports to /tmp/www which is not by default accessible. I choose to make a soft link (below). The yamon page is then available at http://router_name/yamon/yamon2.html
* cd /www; ln -s /tmp/www yamon
- set
BASE_DIR
to BASEDIR - copy
yamon.rc
to/etc/init.d/yamon
- execute
/etc/init.d/yamon enable
- execute
/etc/init.d/yamon start