Posted: Tue Jul 24, 2012 8:29 Post subject: Same set up twice - only one works?
Hi All,
Many thanks for this software and all support - very impresive stuff.
I have the set up working like a charm at home and have an identical set up at work - saly however my work set up is not populating with data? as I say both are same routers and same firmware and same set up through out - only difference is one is static IP and one is DHCP. any reason why one may not be poplulating the .html with data?
Also has anyone managed to send an email at month end with the statics before the reset takes place? this would be realy usefull and there is a working sendmail fuction in busy box - sadly however I would have no idea how to code this into the script.
My set up is:
V1.2 of BW_Monitor
WRT610n V1
DD-WRT v24-sp2 (10/13/10) mega - build 15453M NEWD-2 K2.6 Eko
Go into the directory where user_deatail.js should be and do a "ls -all"
You may see a wholes series of ???????? where date and time etc should be. If that is the case then delete the file and it should get rebuilt after a reboot.
Hope this helps offer some extra details for you and thnak you again to you Wooly and any one else who can offer some support in trouble shooting this.
It may be worth doing a search for mac_usage.db and user_detail.js to see if they exist elsewhere
I think the lack of mac_usage.backup is due to the error shown when you run bw_monitor.sh i.e. missing destination file operand after `/tmp/mac_usage.db'
Somewhere around line 749 in that file you should see the following code, it looks as though part of it is missing.
Code:
if [ $_doUsageFileRestore -eq 1 ]; then
[ "$_macUsageFilePath" = "1" ] && _macUsageData=`cat $_backupUsageFilePath` || cp -f $_backupUsageFilePath $_macUsageFilePath
Hope the above may help, if the problem still exists I can PM you my files, or you can send me yours and see if there are any obvious errors.
Althought i dont know which setting in the router it must have been a setting in the router along with the need for a reflash did it.
I used the same .bin i had for my home router that was already pre-installed on the work router that was not working - anyway i reflashed the work router and then loaded on a back up of the working home router - adjusted the seeting required - and hey preseto - all worked. who know what setting was wrong...? never mind.
2 quick questions for you:
1) the (now working but before broken) set up does not seem to pick us new conections to the network - i have to make sure they are in the MAC tacble on the router for them to be shown in the monitor.html - any thought on why this might be? idfealy you want all ip's on the network to be found and "auto added" as i have on my other set up.
2)I notice you must be using "myPay" - do you have your bw-Monitor setupin mypage? if so have you got any pointers as I thought this was only possible with bwmon not the one here in this thread bw_Monitor.sh.
Posted: Tue Aug 07, 2012 15:58 Post subject: not working
Hi Guys,
First, thanks to all for all their contributions.
Second, once i get this working, i promise i will post my findings and issues in one post.
Third, so my problem is that all my files are updated properly, but my download and upload data is either 0 or really low. now im not sure if it makes any difference that im trying to monitor Interface wl0 instead of br0 or not. I will supply any details as you need them. Any help is greatly appreciated.
I am having a problem with the start up script, and I think it may be my router or setup of dd-wrt. It doesn't seem to execute any script if there are multiple lines. I know this doesn't make sense but if I place a command in the command line box that is only 1 line, it will work. But if I add more than one line, none of the commands will work. Does anyone know what this issue could be? Example, if I do this:
Type the commands you wish to run every startup into the Commands: dialog box (place each command on a newline using the enter key, and if the command isn't something that stops running after a moment, put a '&' after the command)
The ampersand forks the process into the background... otherwise it is waiting to execute one thing at a time.
If your second option is not working, then there is probably something wrong with the wget... or it is not able to download the file... or your simply not giving it long enough.
If I telnet into the router and use the wget commands exactly as is, they work. Also, if I run the commands separately through the GUI in the router, they also work. It's when I combine more than one command that it does not work. I have tried placing the commands in Notepad++ and converting EOL to unix and making sure the encoding is ASCII and then copy and paste into the run dialog in the router's GUI but this also does not work.
I am trying to place the startup script for this bandwidth monitoring script but it doesn't work. When I investigated why it wasn't working, I noticed that the wget commands to download the files never worked, as the /tmp/ folder did not have these files. When I tried with only one line, with 1 wget command, it downloads fine but anytime I add more than one line, none of the commands will execute.
Should I try and put & after every line for the wget commands?
Also, if I use the NV RAM method, would I need to put the "&" as well, or does this limitation not exist for this method?
I am having a problem with the start up script, and I think it may be my router or setup of dd-wrt. It doesn't seem to execute any script if there are multiple lines. I know this doesn't make sense but if I place a command in the command line box that is only 1 line, it will work. But if I add more than one line, none of the commands will work. Does anyone know what this issue could be? Example, if I do this:
Before i try this myself::
Does anyone have a zip / completed implementation that i can unpack to /opt/www and have it work with the MyPage and store all this history / backup / data to /mnt ?
My goal is to have all of the operation files in /opt/www/bwmon and all the assorted data/settings in /mnt/bwmon . I'd like to think of this as a "generic setup" type thing where it automagic as much as posible.
If anyone has it i'd be very appreciative if you would share, otherwise i'll be trying to put this type of setup togeather soon
Joined: 31 Jul 2009 Posts: 492 Location: Toronto, ON, CA
Posted: Mon Sep 03, 2012 22:32 Post subject:
orionshock wrote:
Before i try this myself::
Does anyone have a zip / completed implementation that i can unpack to /opt/www and have it work with the MyPage and store all this history / backup / data to /mnt ?
My goal is to have all of the operation files in /opt/www/bwmon and all the assorted data/settings in /mnt/bwmon . I'd like to think of this as a "generic setup" type thing where it automagic as much as posible.
If anyone has it i'd be very appreciative if you would share, otherwise i'll be trying to put this type of setup togeather soon
See if this version of mypage is what you are looking for.
OK..
I'm still cracking away at this..
Is there a way to start the monitor w/o any user.file and just have it auto add any connected clients and allow the dnsmasq.conf to override?