Hi
Sorry for the few updates lately, I've had a big case of flu these past few weeks and it's been really hard to concentrate. (boohoo)
I've fixed a few more things in lantiq_dsl.sh
The most annoying one was our dsl_cpe0_* pipe getting "locked up" when LuCI's status page ("lucistat") and "status" were running simultaneously.
This would cause the status page to stop working, and effectively stop us from grabbing data for graphs.
The simple fix to this was changing lucistat to use its own pipe, it now uses /tmp/pipe/dsl_cpe1_* where as all the rest use /tmp/pipe/dsl_cpe0_*
I also tinkered with LuCI's status page some more.
opkg feeds have been updated to only use packages compiled for the current firmware build so packages aren't accidentally broken. OpenWrt's trunk is updated all the time.
For those of you who already have the image and don't want to reflash for a few file changes, SSH into your modem and run this simple script.
wget http://vanquishsolutions.co.uk/openwrt/VG3503J/update.sh && chmod +x update.sh && ./update.sh
This will apply the new above and below changes and tell you what files have changed.
Graphing situationI figured it would be pointless having graphs on the modem itself, since they will be gone after a reboot anyway. We don't really need the extra CPU usage either since LuCI takes care of that
I started looking into a few dedicated methods to store and generate graphs, but in the end I went with
Munin since it has
already been done before.
I did make a few modifications, however.
I've added muninlite to the image with a munin-node script to grab stats from a cronjob-induced text file which is saved to /tmp every five minutes.
This will be used by Munin Master to generate graphs.
If you're not familiar with munin or if you're on Auld Wullies OS, or just want something dedicated for Munin to run on then I've created a VirtualBox disk which runs out of the box with Munin Master setup for you to play about with.
By default the networking on this is set to a static IP of 192.168.1.3, so once it's setup you can access your graphs at
http://192.168.1.3/Windows
1. Download
VirtualBox for Windows (5.0.3)2. Grab
MuninMaster.zip (370MB) - extract and place the "Munin Master" folder in "C:\Users\%USERNAME%\VirtualBox VMs"
3. Run VirtualBox and start the Munin Master VM
You might need to change some settings before you start the VM, such as the Network Adapter (see Network > Name)
If everything has went to plan, try it out at
http://192.168.1.3/ - if not, check no other machines are using this IP or check your DHCP pool range on your router.
Tips:You might prefer the VM to run in the background to minimize resource usage. Simply go to Command Prompt and run
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "Munin Master" --type headless
You can also use this to run the VM on startup.
There won't be any GUI since it's running in the background. If you need that, just start VirtualBox and click Show. You'll be greeted with a tty prompt as there isn't any desktop. The default user & password is: root root
SSH is available, but only from other devices in your internal network.
If you want to access SSH from anywhere else other than 192.168.1.* I recommend you first change the password by running "passwd root" and then proceed to edit /etc/hosts.deny
If you want to change the IP from 192.168.1.3, simply edit the eth0 int in /etc/networking/interfaces and reload (/etc/init.d/networking restart).
Here's a demo of Munin graphing my ECI /rI've been quite pleased with this so far. Perhaps the graphs need some more tinkering with though to make them look pretty.