charly22 / wrtbwmon Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/wrtbwmon
Automatically exported from code.google.com/p/wrtbwmon
This is not a problem, just suggesting a future development: how easy/difficult
would it be to implement per user quotas? If a user exceeds his download/upload
quota over a period of time, he would be denied access for a certain time.
Other than that I am using your program on my Linksys 160n and it does a fine
job, thanks a lot.
David
Original issue reported on code.google.com by [email protected]
on 20 Nov 2010 at 7:24
What steps will reproduce the problem?
1. Latest build using USERFILE as Arg ${4}
What is the expected output? What do you see instead?
Doesn't read USERFILE correctly. Shows hostnames from presumably
/tmp/dnsmasq.conf for those with static IPs and ignores any other
hosts on the network and displays a MAC address.
What version of the product are you using? On what operating system?
Download: Latest version (build 40)
Uploaded by: emmanuel.brucy
Uploaded: Jan 08, 2010
SHA1 Checksum: 19e08ad956a16c40a1c305dccc1f03e5450b71a4
Buffalo whr-hp-g54 with DD-WRT v24 sp2 std
Please provide any additional information below.
Possibly a typo? Not sure this fixes it though.
Typo on line 141? [ -z "${4}" ] || USERFILE=${4}
Replace with [ -z "${4}" ] || USERSFILE=${4}
Original issue reported on code.google.com by [email protected]
on 3 Feb 2010 at 4:36
Background:
* I use a Linksys WRT54GS v.6 router with DD-WRT v.24 SP2.
* I downloaded the most recent wrtbwmon yesterday (1/11/2010), saving it in
/tmp/
* I set up the cron jobs, as suggested on the 'deploying' page.
*******************************
After 20 hours, I realized that I was not getting proper output. I tried
to run a few of the commands that cron runs myself, like:
% /tmp/wrtbwmon setup br0
and
% /tmp/wrtbwmon update /tmp/usage.db peak
But I got an error:
/tmp/wrtbwmon: line 90: syntax error: you disabled math support for
$((arith)) syntax
Any suggestions? Do you have any ideas how to enable math support on DD-
WRT?
Thanks, and sorry for being a script n00b!
Original issue reported on code.google.com by [email protected]
on 11 Jan 2010 at 3:43
Attachments:
What steps will reproduce the problem?
1. use the following line without the brackets in cron job in Administration
tab: [55 23 * * * root /mnt/wrtbwmon publish /mnt/usage.db /mnt/usage-`date
+%d%b%Y`.htm]
2. wait until 11:55PM, 5 minutes from midnight to see if report is generated
What is the expected output? What do you see instead?
I expect the usage.htm file to be generated, with a filename based on the day,
month, and year - like: usage-22June2010.htm
I don't see the file created. usage.htm is created regularly using the cron job
code from the deployment wiki. When I run the line manually by SSH'ing into the
router it creates the file just fine.
What version of the product are you using? On what operating system?
Followed the deployment wiki as of 3 days ago. Using DD-WRT v24-sp2 mega build
on ASUS WL-500g Premium V2. Ubuntu 10.04/Windows 7 Pro 64bit.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Jun 2010 at 7:52
You need to modify from the wrtbwmon file:
LAN_IFACE=$(echo br-lan)
and the crons:
* * * * * /mnt/usb1/wrtbwmon/wrtbwmon setup br-lan
* 7-18 * * * /mnt/usb1/wrtbwmon/wrtbwmon update /mnt/usb1/wrtbwmon/usage.db peak
* 19-23 * * * /mnt/usb1/wrtbwmon/wrtbwmon update /mnt/usb1/wrtbwmon/usage.db
offpeak
* 0-6 * * * /mnt/usb1/wrtbwmon/wrtbwmon update /mnt/usb1/wrtbwmon/usage.db
offpeak
* * * * * /mnt/usb1/wrtbwmon/wrtbwmon publish /mnt/usb1/wrtbwmon/usage.db
/www/usage.htm
(As I have them on an USB, it is marking it as /mnt/usb1/wrtbwmon)
It *seems* to work ATM
Original issue reported on code.google.com by Ernesto.Villarreal
on 3 Feb 2015 at 4:53
After changing my routers time zone from GMT+1 to GMT+2 pretty much all
data was lost.
Original issue reported on code.google.com by seocam
on 15 Jun 2009 at 12:21
I had some issues making this work on the latest OpenWRT, things like different
interface names and /proc/net/arp output formats. I've updated the script so
that it works, and also added in total counts to the table. You can find my
notes here:
http://www.kallisti.net.nz/blog/2010/12/per-user-traffic-monitoring-on-openwrt/
You're welcome to incorporate these if you like.
Original issue reported on code.google.com by [email protected]
on 5 Dec 2010 at 4:19
Actually this is not a bug but a feature request.
Instead of setting the USERSFILE manually you could use the dnsmasq static
lease table to do this for you.
The attached patch checks if there is a USERFILE setted, if yes use it,
otherwise try to use the dnsmasq.conf from the default location on dd-wrt.
I don't know if this is the same on open-wrt or tomato so if it's not it
should try a list of locations.
Also the format of the dnsmasq.conf is different so instead of use = as
separator I'm using comma.
Few free to write to me if you want to discuss or ask something.
BTW nice job with the script! ;)
Original issue reported on code.google.com by seocam
on 9 Jun 2009 at 11:23
Attachments:
What steps will reproduce the problem?
simply running "/cifs1/wrtbwmon update /cifs1/usage.db peak" on tomato 1.27
gives me these errors every time.
# /cifs1/wrtbwmon update /cifs1/usage.db peak
cat: can't open '/tmp/in_9750.tmp': No such file or directory
cat: can't open '/tmp/out_9750.tmp': No such file or directory
[: 0: unknown operand
cat: can't open '/tmp/in_9750.tmp': No such file or directory
cat: can't open '/tmp/out_9750.tmp': No such file or directory
[: 0: unknown operand
DEBUG : New traffic for "mac address" since last update : 124k:2799k
DEBUG : New traffic for "mac address" since last update : 22k:2k
#
not to sure why but this happens every time i run it and it seems to loose
allot of data.
im running standard old tomato 1.27 release.
Original issue reported on code.google.com by [email protected]
on 2 Jul 2010 at 7:13
Running DD-WRT v24-sp2 (11/21/10) std-usb-nas - build 15778 on a Linksys e2000.
Everything works great, except there is no "total usage" value. See attached.
Original issue reported on code.google.com by [email protected]
on 21 Dec 2011 at 7:31
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.