YAMon 2.2 Usage Reporting: by device per hr/day/mo or live

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 43, 44, 45 ... 107, 108, 109  Next
Author Message
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sat Oct 25, 2014 18:53    Post subject: Reply with quote
DeceptivePastry wrote:
2. The way the hourly usage bar graph under Daily Usage further breaks down usage per device is perfect. However, under Monthly Breakdown it only seems to show total usage of all users per day with no further breakdown. Is there something I'm missing, or if not, that would be a very useful feature to add should you get around to it. That way I can print out a weekly usage breakdown, per device per day, and put it on the fridge so that whichever family member takes up the most bandwidth on average can be publicly shamed at the dinner table. Lol.


How do these look?
I'll update the scripts shortly and you'll see them on your monthly usage tab.

Al



new monthly graphs.png
 Description:
 Filesize:  39.21 KB
 Viewed:  8796 Time(s)

new monthly graphs.png


Sponsor
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Sat Oct 25, 2014 19:01    Post subject: Reply with quote
Al, you bandwidth hog! It looks awesome!
_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Oct 26, 2014 2:15    Post subject: Reply with quote
al_c wrote:
DeceptivePastry wrote:
2. The way the hourly usage bar graph under Daily Usage further breaks down usage per device is perfect. However, under Monthly Breakdown it only seems to show total usage of all users per day with no further breakdown. Is there something I'm missing, or if not, that would be a very useful feature to add should you get around to it. That way I can print out a weekly usage breakdown, per device per day, and put it on the fridge so that whichever family member takes up the most bandwidth on average can be publicly shamed at the dinner table. Lol.


How do these look?
I'll update the scripts shortly and you'll see them on your monthly usage tab.

Al


I've updated the JavaScript files so you should all now see the two new graphs on the Monthly Usage tab.

I've also updated the (new) ISP tab so that it will now properly import data from Rogers and Electric Box (send me your ISP's fornat and I'll add it too!). You'll need to download the attached update to yamon2.html for this though...)

On the Monthly Breakdown tab, I'll also flag the dates on which the router was rebooted (see screenshot).

Al



restarts.png
 Description:
 Filesize:  139.11 KB
 Viewed:  8731 Time(s)

restarts.png



ISP import 2.png
 Description:
 Filesize:  68.1 KB
 Viewed:  8735 Time(s)

ISP import 2.png



yamon2 (2.0.15b).zip
 Description:

Download
 Filename:  yamon2 (2.0.15b).zip
 Filesize:  14.91 KB
 Downloaded:  224 Time(s)

asfd64
DD-WRT User


Joined: 13 Nov 2010
Posts: 59

PostPosted: Mon Oct 27, 2014 4:25    Post subject: Reply with quote
The new graph looks great Al. I meant to ask you this last time but I forgot, are the backups working? I have the www and dailyBU set to yes in the config but my wwwBU folder only has one folder from oct 21 and my daily-bu2 has a 0B tar from oct 21. I disabled the TAR option but I still don't see any backups in there.

Thanks
Ian
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Mon Oct 27, 2014 19:45    Post subject: Reply with quote
asfd64 wrote:
The new graph looks great Al. I meant to ask you this last time but I forgot, are the backups working? I have the www and dailyBU set to yes in the config but my wwwBU folder only has one folder from oct 21 and my daily-bu2 has a 0B tar from oct 21. I disabled the TAR option but I still don't see any backups in there.

Thanks
Ian


Ian - it's been a while since I checked but yes those folders are getting updated as expected on my router.

if _dowwwBU=1 in your config.file, when yamon2.sh is stopped (normally), a copy of the /tmp/www/ directory is saved into a time-stamped directory within /wwwBU. (I added this feature when I found that I was [repeatedly] clobbering changes I'd made to yamon2.html in /tmp/www when I started and stopped the script.)

if _doDailyBU=1 in your config.file, then the script should make a backup of your data and log directories every day (at about midnight); if _tarBUs=1, then those directories should get compressed (into a date-stamped `.tar` file). As I said above, that's working on my machine (i.e., `bu-2014-10-26.tar` was added to my daily-bu2 directory last night). Given the variability between different firmware versions, I would not be overly surprised to hear that some routers do not support all of the options for the tar command...

Set _loglevel=0 in your config.file and see what sorts of messages get added to your logs at midnight tonight.

Reminder... you do not have to stop yamon2.sh to effect this change... just edit config.file (and save the changes) and within ~3min, the script will re-read the options.

Al
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Mon Oct 27, 2014 19:53    Post subject: Reply with quote
al_c wrote:
asfd64 wrote:
I disabled the TAR option but I still don't see any backups in there.

Thanks
Ian


Ian - it's been a while since I checked but yes those folders are getting updated as expected on my router.

if _dowwwBU=1 in your config.file...

if _doDailyBU=1 in your config.file, then the script should make a backup of your data and log directories every day (at about midnight); if _tarBUs=1...

Al


Actually... the first one is working properly (AFAIK)

But, I just took another look at the script and, for some some boneheaded reason, it only makes a backup when _doDailyBU=1 and _tarBUs=1... I do not execute any code when _tarBUs=0 Embarassed

I'll fix that ASAP!

Thanks for bringing this to my attention.

Al
b0xBR
DD-WRT Novice


Joined: 10 Aug 2014
Posts: 48

PostPosted: Tue Oct 28, 2014 1:29    Post subject: Reply with quote
Dear Al.

I noted that all utorrent traffic is not being summed at total usage. I'm using obsfucation connections. Anyway, just to let you know.

Regards.
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Tue Oct 28, 2014 3:57    Post subject: Reply with quote
b0xBR wrote:
Dear Al.

I noted that all utorrent traffic is not being summed at total usage. I'm using obsfucation connections. Anyway, just to let you know.

Regards.


If you have privOxy and/or UPnP enabled, that will allow other apps to create iptables entries which'll process(hijack) data before it gets to YAMon... Not much I can do about that.

Al
b0xBR
DD-WRT Novice


Joined: 10 Aug 2014
Posts: 48

PostPosted: Tue Oct 28, 2014 4:26    Post subject: Reply with quote
al_c wrote:
b0xBR wrote:
Dear Al.

I noted that all utorrent traffic is not being summed at total usage. I'm using obsfucation connections. Anyway, just to let you know.

Regards.


If you have privOxy and/or UPnP enabled, that will allow other apps to create iptables entries which'll process(hijack) data before it gets to YAMon... Not much I can do about that.

Al



Yeah, I'm using UPnP. Thank you for your prompt reply Al.

Regards.
brthurr
DD-WRT Novice


Joined: 28 Oct 2014
Posts: 1

PostPosted: Tue Oct 28, 2014 15:09    Post subject: Reply with quote
Thanks for this. It's exactly what I was looking for.

Just a heads up that your master util.js should be edited and the src for clear.png and close.png should be modified by removing one dot:

OLD
<img id='alert-clear' title='Click to clear this list of errors' src='../images/clear.png'>

NEW
<img id='alert-clear' title='Click to clear this list of errors' src='./images/clear.png'>

The current version is causing the images not to load.

Not really affecting functionality, just something I noticed.
deanpeak
DD-WRT User


Joined: 13 Sep 2014
Posts: 70

PostPosted: Wed Oct 29, 2014 13:01    Post subject: Reply with quote
Hey Al!
Recently, I have noticed sporadically that when I go to the YAMon reports page I get the 'something has happened' screen. The screen also does not seem to be in the normal formatting. The only resolution I have found is that I go and stop the script and then restart it? Then when I go back to the reports I have to resent the basic parameters about ISP billing, limit, and the like. Then I can go to the reports. At this point, I will notice that last months data is not showing and if i back up to September it seems to pull it back in. I also notice that any manual adjustment I have made is no longer there? But it seems to be working fine until this weird thing happens again... sny thoughts on that?
Thanks!
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Wed Oct 29, 2014 18:49    Post subject: Reply with quote
deanpeak wrote:
Hey Al!
Recently, I have noticed sporadically that when I go to the YAMon reports page I get the 'something has happened' screen. The screen also does not seem to be in the normal formatting. The only resolution I have found is that I go and stop the script and then restart it? Then when I go back to the reports I have to resent the basic parameters about ISP billing, limit, and the like. Then I can go to the reports. At this point, I will notice that last months data is not showing and if i back up to September it seems to pull it back in. I also notice that any manual adjustment I have made is no longer there? But it seems to be working fine until this weird thing happens again... sny thoughts on that?
Thanks!


That certainly is odd behaviour in the reports. What browser/OS are you using?
Does it happen in other browsers?
Are you using the startup script to copy the files locally?
Are the data files appearing properly in /tmp/www/data/?
What error message(s) do you see when you type Ctrl+Shift+J?

Without more info (esp. the error message) I can't tell you what the problem is.

If restarting the yamon2.sh script makes things better, it could mean that the files on the web server are getting corrupted somehow (because restarting causes the data and source files to be copied from /opt/YAMon2/data & /opt/YAMon2/Setup/www over /tmp/www/)... I have no idea what could be corrupting them... next time it happens zip up your /tmp/www/ directory and send it to me.

The fact that you have to re-enter the billing date etc. tells me that your localstorage values are getting clobbered. Again, no idea what could be causing that...

Sorry I cannot be more helpful.

Al
deanpeak
DD-WRT User


Joined: 13 Sep 2014
Posts: 70

PostPosted: Fri Oct 31, 2014 13:33    Post subject: Reply with quote
al_c wrote:
deanpeak wrote:
Hey Al!
Recently, I have noticed sporadically that when I go to the YAMon reports page I get the 'something has happened' screen. The screen also does not seem to be in the normal formatting. The only resolution I have found is that I go and stop the script and then restart it? Then when I go back to the reports I have to resent the basic parameters about ISP billing, limit, and the like. Then I can go to the reports. At this point, I will notice that last months data is not showing and if i back up to September it seems to pull it back in. I also notice that any manual adjustment I have made is no longer there? But it seems to be working fine until this weird thing happens again... sny thoughts on that?
Thanks!


That certainly is odd behaviour in the reports. What browser/OS are you using?
Does it happen in other browsers?
Are you using the startup script to copy the files locally?
Are the data files appearing properly in /tmp/www/data/?
What error message(s) do you see when you type Ctrl+Shift+J?

Without more info (esp. the error message) I can't tell you what the problem is.

If restarting the yamon2.sh script makes things better, it could mean that the files on the web server are getting corrupted somehow (because restarting causes the data and source files to be copied from /opt/YAMon2/data & /opt/YAMon2/Setup/www over /tmp/www/)... I have no idea what could be corrupting them... next time it happens zip up your /tmp/www/ directory and send it to me.

The fact that you have to re-enter the billing date etc. tells me that your localstorage values are getting clobbered. Again, no idea what could be causing that...

Sorry I cannot be more helpful.

Al

Hey Al... I was trying to reply yesterday and then had some issues at work and my post timed out and I lost it. Any... I am on WIN 8.1 and most of the time have used the Metro version of explorer. I have not tried any other browsers at this time. When I start the script I use the yamon.startup script. It happened yesterday and I did compress and PM the WWW folder to you. My router did lose its IP address yesterday and this may be what caused it? This ip thing has been a sporadic issue that I have not nailed down what causes it yet. The crtl+Shift+J does not seem to work in explorer? I did not need to re-enter any parameters this time when i restarted and went to the reports which was good.
Thanks!

Curious.... any luck with IPv6 yet?
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Fri Oct 31, 2014 14:48    Post subject: Reply with quote
deanpeak wrote:
[
Hey Al... I was trying to reply yesterday and then had some issues at work and my post timed out and I lost it. Any... I am on WIN 8.1 and most of the time have used the Metro version of explorer. I have not tried any other browsers at this time. When I start the script I use the yamon.startup script. It happened yesterday and I did compress and PM the WWW folder to you. My router did lose its IP address yesterday and this may be what caused it? This ip thing has been a sporadic issue that I have not nailed down what causes it yet. The crtl+Shift+J does not seem to work in explorer? I did not need to re-enter any parameters this time when i restarted and went to the reports which was good.
Thanks!

Curious.... any luck with IPv6 yet?


Sorry - no time for IPv6 yet.

If you get the message timeout error when posting in this forum, first click the `Preview` button (and that should re-establish your session)

Are you running a dual band router? I've found on a couple of occasions recently that my 2.4GHz signal `dies` but the 5.0GHz band is OK (so various devices on our network cannot connect). I am 99% certain that this is a firmware issue rather than something to do with YAMon.

Rebooting the router works for me too but is a brute force approach to solving the problem. I did a bit of digging and the attached script seems to work for me... I have it in my /opt/YAMon2/Setup/ directory (with execute permissions, of course). The script restarts both the bands on my router... you might have to tweak it for yours.

One day, if I have a little more time (and after I'm done with IPv6), I might look into modifying that script so that it detects a problem exists with either band and automatically reboots it... Not sure if it really fits within YAMon's feature set though. Perhaps just a cron job.

Hope this helps



restart-wifi.zip
 Description:

Download
 Filename:  restart-wifi.zip
 Filesize:  238 Bytes
 Downloaded:  258 Time(s)

deanpeak
DD-WRT User


Joined: 13 Sep 2014
Posts: 70

PostPosted: Fri Oct 31, 2014 18:10    Post subject: Reply with quote
al_c wrote:
deanpeak wrote:
[
Hey Al... I was trying to reply yesterday and then had some issues at work and my post timed out and I lost it. Any... I am on WIN 8.1 and most of the time have used the Metro version of explorer. I have not tried any other browsers at this time. When I start the script I use the yamon.startup script. It happened yesterday and I did compress and PM the WWW folder to you. My router did lose its IP address yesterday and this may be what caused it? This ip thing has been a sporadic issue that I have not nailed down what causes it yet. The crtl+Shift+J does not seem to work in explorer? I did not need to re-enter any parameters this time when i restarted and went to the reports which was good.
Thanks!

Curious.... any luck with IPv6 yet?


Sorry - no time for IPv6 yet.

If you get the message timeout error when posting in this forum, first click the `Preview` button (and that should re-establish your session)

Are you running a dual band router? I've found on a couple of occasions recently that my 2.4GHz signal `dies` but the 5.0GHz band is OK (so various devices on our network cannot connect). I am 99% certain that this is a firmware issue rather than something to do with YAMon.

Rebooting the router works for me too but is a brute force approach to solving the problem. I did a bit of digging and the attached script seems to work for me... I have it in my /opt/YAMon2/Setup/ directory (with execute permissions, of course). The script restarts both the bands on my router... you might have to tweak it for yours.

One day, if I have a little more time (and after I'm done with IPv6), I might look into modifying that script so that it detects a problem exists with either band and automatically reboots it... Not sure if it really fits within YAMon's feature set though. Perhaps just a cron job.

Hope this helps

Hey Al,
I am using a dual band router. I will take a look at this script. Thanks
Goto page Previous  1, 2, 3 ... 43, 44, 45 ... 107, 108, 109  Next Display posts from previous:    Page 44 of 109
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum