Skip to content

jlhughes/openwrt-yamon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

openwrt-yamon

YAMon2 configuration for openwrt

YAMon2 version: v2.2.0 (Script v2.2.5)

OpenWrt version: CHAOS CALMER (15.05-rc3, r46163)

Download YAMon2

* http://usage-monitoring.com/

Installation

Review these changes then follow the readme.txt (in the download zip) for installation. Make these changes before starting.

Configuration / Setup file changes

BASEDIR="/mnt/sda1/yamon"

yamon.startup

* set path to BASEDIR

yamon.shutdown

* set path to BASEDIR

config.file

* _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/.

nvram replacement

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

web access

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

init rc / start at boot

yamon.rc

  1. set BASE_DIR to BASEDIR
  2. copy yamon.rc to /etc/init.d/yamon
  3. execute /etc/init.d/yamon enable
  4. execute /etc/init.d/yamon start

About

YAMon2 for openwrt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published