Alternate Per User Bandwith Monitoring (Directly On Router)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload
Goto page Previous  1, 2, 3, 4, 5  Next
Author Message
bendcat
DD-WRT Novice


Joined: 02 Mar 2016
Posts: 6

PostPosted: Wed Mar 02, 2016 3:54    Post subject: Newbie here, need help on installing Reply with quote
Newbie here, need help on installing
Ok what i've done is this, please correct me if I'm wrong..

The problem is I can't seem run the (only blank/White Page)
http://192.168.1.1/user/bwmon.html
http://192.168.1.1/MyPage.asp


Copy-Paste from Putty
Code:

BusyBox v1.24.1 (2016-02-19 10:26:55 CET) built-in shell (ash)
root@DD-WRT:~# cd /tmp/
root@DD-WRT:/tmp# wget https://github.com/vortex-5/ddwrt-bwmon/releases/download/1.6.2/bwmon.tar.gz
Connecting to github.com (192.30.252.129:443)
root@DD-WRT:/tmp# tar -xzvf bwmon.tar.gz
root@DD-WRT:/tmp# chmod +x cd /tmp/bwmon/ && sh install.sh

root@DD-WRT:/tmp# nvram /tmp/bwmon/startup.sh
  ~*also tried*~
root@DD-WRT:/tmp# nvram set mypage_scripts="/tmp/bwmon/startup.sh"

root@DD-WRT:/tmp# nvram commit


P.S.
By checking at putty using command: ls -alh
I can't seem find the folder "bwmon" (I'm a newbie)

Anyone from community? please help me, Thanks.
Sponsor
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Wed Mar 02, 2016 5:37    Post subject: Reply with quote
You most likely shouldn't set mypage since this script does not require it like the other scripts

after you execute install.sh and start.sh you should be able to visit the page.

on your router /tmp may not be writable
bendcat
DD-WRT Novice


Joined: 02 Mar 2016
Posts: 6

PostPosted: Fri Mar 04, 2016 3:50    Post subject: Reply with quote
I tried using mkdir bwmon and it was successfully created.

Then I tried is this after mkdir (just to troubleshoot)
Code:
BusyBox v1.24.1 (2016-02-19 10:26:55 CET) built-in shell (ash)

root@DD-WRT:~# ls -a
.     ..    .ssh
root@DD-WRT:~# cd tmp
-sh: cd: can't cd to tmp
root@DD-WRT:~# cd /tmp
root@DD-WRT:/tmp# ls -a

_(it shows bwmon folder on the list)_

root@DD-WRT:/tmp# cd bwmon
root@DD-WRT:/tmp/bwmon# ls -a
.   ..
root@DD-WRT:/tmp/bwmon# cd ..
root@DD-WRT:/tmp# wget https://github.com/vortex-5/ddwrt-bwmon/releases/download/1.6.2/bwmon.tar.gz
Connecting to github.com (192.30.252.128:443)
root@DD-WRT:/tmp# tar -xzvf bwmon.tar.gz
root@DD-WRT:/tmp# cd bwmon
root@DD-WRT:/tmp/bwmon# ls -a
.   ..
root@DD-WRT:/tmp/bwmon# cd ..
root@DD-WRT:/tmp# ls -a

_(no extracted files seen on this list)_

root@DD-WRT:/tmp#


may be this command:
**tar -xzvf bwmon.tar.gz** doesn't create a bwmon folder or this files doesn't extract at all
I can't seem find the answer also on google, what I can think about is the command line doesn't extract or maybe something wrong in my commands in putty.

my router is Linksys E1200 v2 DD-WRT (K3)
I am really new into this things, I need help. Thanks.
raqua
DD-WRT User


Joined: 13 Feb 2014
Posts: 58

PostPosted: Fri Mar 04, 2016 8:10    Post subject: Reply with quote
bendcat wrote:

root@DD-WRT:/tmp/bwmon# ls -a
. ..
root@DD-WRT:/tmp/bwmon# cd ..


By issuing "cd .." you went back to /tmp folder. I believe you want bwmon to be extracted in your /tmp/bwmon directory rather that in /tmp, so you should not do the "cd .." part.


bendcat wrote:

root@DD-WRT:/tmp# wget https://github.com/vortex-5/ddwrt-bwmon/releases/download/1.6.2/bwmon.tar.gz
Connecting to github.com (192.30.252.128:443)


Check that bwmon.tar.gz exists in your folder. It is not clear to me whether the download was successful.

_________________
Netgear R7000 running BS DD-WRT build 26446 (home)
bendcat
DD-WRT Novice


Joined: 02 Mar 2016
Posts: 6

PostPosted: Mon Mar 07, 2016 6:23    Post subject: Reply with quote
raqua wrote:
bendcat wrote:

root@DD-WRT:/tmp/bwmon# ls -a
. ..
root@DD-WRT:/tmp/bwmon# cd ..


By issuing "cd .." you went back to /tmp folder. I believe you want bwmon to be extracted in your /tmp/bwmon directory rather that in /tmp, so you should not do the "cd .." part.


What I did here is just to test it if the files are there.
Using ls -a command to check if it will show some list of files but nothing was there.
And commanding cd.. to return to original folder (as original path in the instruction of vortex-5 in Github)

raqua wrote:

bendcat wrote:

root@DD-WRT:/tmp# wget https://github.com/vortex-5/ddwrt-bwmon/releases/download/1.6.2/bwmon.tar.gz
Connecting to github.com (192.30.252.128:443)


Check that bwmon.tar.gz exists in your folder. It is not clear to me whether the download was successful.


Thanks for the information, maybe it is not yet successfully downloaded.

Question if I downloaded it manually on my pc, what command should I use to copy it inside my router? (Well its just a newbie question, I can google it later Smile this is just to help others who are new into this)

Thank you so much.
raqua
DD-WRT User


Joined: 13 Feb 2014
Posts: 58

PostPosted: Mon Mar 07, 2016 6:42    Post subject: Reply with quote
That is highly dependent on your OS.
I use Linux and scp to copy files around.
For Windows, there is WinSCP.
You have to have SSH access enabled on your router.

_________________
Netgear R7000 running BS DD-WRT build 26446 (home)
bendcat
DD-WRT Novice


Joined: 02 Mar 2016
Posts: 6

PostPosted: Tue Mar 08, 2016 6:28    Post subject: Reply with quote
THANK YOU!!! Problem Solved

Please use WinSCP... the problem is with putty it is nothing but execute ssh commands, it can't transfer files.

WinSCP ftw

Laughing

P.S.
Vortex-5 please update your Guide/Instruction on step 4. at GitHub because you said using Putty, please replace it with WinSCP.

Thank you so much for the great effort. Smile
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Fri Mar 25, 2016 16:55    Post subject: Reply with quote
Version 1.7.0 has been released.

Users of the non lighttpd version now also have dns resolution.
Cameron_Nicholson
DD-WRT Novice


Joined: 08 Apr 2015
Posts: 8

PostPosted: Tue Apr 19, 2016 14:50    Post subject: Reply with quote
Hi

I was wondering if you can help me. I have a TP-Link WR103ND Router running DD-WRT. I have installed BWMON by downloading the zip from github, placing it on a USB and using command /jffs/bwmon/ && sh install.sh in commands on DD-WRT's web UI. My issue is when I go to http://192.168.0.14/user/bwmon.html there are no devices? Does it need further configuration? Is it a setting in the router? Am I meant to manually enter the names in 'mac-names.js'?

Any help would be greatly appreciated.

Thanks

vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Tue Apr 19, 2016 14:55    Post subject: Reply with quote
as long as the file is extracted mounted to jffs/bwmon and the the files can be set to executable (by executing install.sh)

you should not require further configuration it should start showing you logging data.

In terms of executable it has to be executable on a posix system meaning the usb drive must be formatted to EXT3 EXT4 or NTFS version 3 or above (Windows 7 and later).
Cameron_Nicholson
DD-WRT Novice


Joined: 08 Apr 2015
Posts: 8

PostPosted: Tue Apr 19, 2016 15:12    Post subject: Reply with quote
vortex05 wrote:
as long as the file is extracted mounted to jffs/bwmon and the the files can be set to executable (by executing install.sh)

you should not require further configuration it should start showing you logging data.

In terms of executable it has to be executable on a posix system meaning the usb drive must be formatted to EXT3 EXT4 or NTFS version 3 or above (Windows 7 and later).


Thanks for the reply

The drive is formatted to NTFS using EaseUS on Windows 10. Yes the file is extracted on jffs/bwmon and can be executed. What could the issue be?
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Tue Apr 19, 2016 15:16    Post subject: Reply with quote
You may have to look at the console messages if you are running lighttpd ensure that routerip/bwreader.php is accessable.

if you are not running php ensure that routerip/user/dnsmasq-leases.js and routerip/user/dnsmasq-conf.js and routerip/user/usage-stats.js are accessable

Note that devices with zero usage will not appear by design.

Devices not passing through the WAN port.
Cameron_Nicholson
DD-WRT Novice


Joined: 08 Apr 2015
Posts: 8

PostPosted: Tue Apr 19, 2016 15:24    Post subject: Reply with quote
vortex05 wrote:

if you are not running php ensure that routerip/user/dnsmasq-leases.js and routerip/user/dnsmasq-conf.js and routerip/user/usage-stats.js are accessable

Note that devices with zero usage will not appear by design.

Devices not passing through the WAN port.


All three of them files are accessible.

Also my DD-WRT router is connected to the main modem lan to lan, not wan?





Thank you for you help
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Tue Apr 19, 2016 15:29    Post subject: Reply with quote
If you are connected to the modem lan to lan then no tracking can occur.

The router's firewall is not hooked up to the internal switch in most routers the firewall is used to count packets passing through it which is how this and other tools obtain the traffic metrics.

If you wish to have tracking you will have to connect the internet to the wan port on the router.

The correct configuration is modem is connected via wan.

Do you see any content in your routerip/user/usage-stats.js and routerip/user/usage.js?
Cameron_Nicholson
DD-WRT Novice


Joined: 08 Apr 2015
Posts: 8

PostPosted: Tue Apr 19, 2016 16:36    Post subject: Reply with quote
vortex05 wrote:
If you are connected to the modem lan to lan then no tracking can occur.


Ok I connected my DD-WRT router via wan and after a bit of messing around it got it all up and running.

Question, is it possible to change the 10 second timer to 1 or even 0?

Thanks again for your help

-- Edit -- Usage stats show nothing.

Another question, can you have the download/upload usage reset every 30days?

Thanks
Goto page Previous  1, 2, 3, 4, 5  Next Display posts from previous:    Page 3 of 5
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum