YAMon 3.0... Usage Reporting by device per hr/day/mo

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Goto page 1, 2, 3 ... 149, 150, 151  Next
Author Message
al_c
DD-WRT Guru


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

PostPosted: Mon Jan 25, 2016 4:41    Post subject: YAMon 3.0... Usage Reporting by device per hr/day/mo Reply with quote
NB - This thread is no longer active!
The latest information about YAMon is available in the current thread in this forum:
--> https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1147779
or at
--> http://usage-monitoring.com


--------------------------------------------------

The latest YAMon installer script should be downloaded here.


Al wrote:
If you want to get YAMon but are intimidated by the notion of `flashing` your router yourself (i.e., replacing the stock firmware with DD-WRT), checkout the `Can I get a router with DD-WRT pre-installed?` help topic at the YAMon web site.



If you are not already familiar with YAMon, it gives you the ability to monitor which devices are connecting to your network and how much data they are consuming, when. You can organize devices into arbitrary logical groupings (e.g., by device function (streaming devices printers, etc.) or by device owner (family members, roommates, visitors, etc). YAMon also helps to manage the data usage cap imposed by your ISP.

To run YAMon, you will require :
  1. a router configured to run one of the *WRT variants - e.g., DD-WRT, OpenWRT, Asus Merlin, LEDE, and Shibby Tomato as well.
  2. either a USB drive attached directly to you router or another network accessible storage device (I strongly recommend that you format it as `ext4`)
  3. WinSCP and PuTTY (or equivalent) to copy files and execute commands on your router
  4. Notepad++ (or equivalent) to edit the config files (if necessary)



For tips and tricks relating to the installation process, see http://usage-monitoring.com/install/

Al



install (2016-10-05).zip
 Description:
1. install.sh installs yamon3.0.15.sh and includes h2m.sh & organize.sh. It also better sets initial default folder permissions.
2. yamon3.0.15.sh also sets folder permissions and improves behaviour relating to (frequently) changing IP addresses

Download
 Filename:  install (2016-10-05).zip
 Filesize:  9.29 KB
 Downloaded:  3043 Time(s)



Last edited by al_c on Thu Nov 22, 2018 14:19; edited 28 times in total
Sponsor
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 25, 2016 15:48    Post subject: Reply with quote
http://192.168.1.2/user/yamon3.html nets me a blank page?? 1.2 is my R7000 AP running yamon3.

getlocalcopies.sh references yamon2.html

Setting for local copies doesn't work either.

Dave???

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
al_c
DD-WRT Guru


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

PostPosted: Mon Jan 25, 2016 16:06    Post subject: Reply with quote
ddaniel51 wrote:
http://192.168.1.2/user/yamon3.html nets me a blank page?? 1.2 is my R7000 AP running yamon3.

getlocalcopies.sh references yamon2.html

Setting for local copies doesn't work either.

Dave???


Uh oh... does a symlink to yamon3.html get created in /tmp/www/? If no, drag yamon3.html into /tmp/www/ (or create the symlink manually).

I'll update getlocalcopies.sh ASAP and retest. Thanks for pointing this out.

Al
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 25, 2016 16:18    Post subject: Reply with quote
tmp/www has bad shortcuts to yamon3.html, css, and js.

The rest of the files appear to be ok.

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 25, 2016 16:24    Post subject: Reply with quote
Rebooted the router, symlink is enabled and tmp/www is empty.
_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 25, 2016 16:48    Post subject: Reply with quote
Kept my fingers out of your files and reinstalled.

Install wouldn't accept default folder until I typed it in.

Here is my terminal buffer and config file.

WinSCP still shows /temp/www as empty.



Yamon3..rar
 Description:

Download
 Filename:  Yamon3..rar
 Filesize:  12.4 KB
 Downloaded:  1785 Time(s)


_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
VTecheira
DD-WRT User


Joined: 17 Sep 2014
Posts: 56

PostPosted: Mon Jan 25, 2016 19:39    Post subject: Reply with quote
I had the same issue. I took a closer look at this and the problem is with the symlink it self. You are still including the set up directory in the symlink call, even though we'eve done away with it

I'm running both simultaneously so my directory looks like this.
Code:

lrwxrwxrwx    1 root     root            25 Jan 25 00:12 css -> /opt/YAMon2/Setup/www/css/
lrwxrwxrwx    1 root     root            17 Jan 25 00:12 data -> /opt/YAMon2/data//
lrwxrwxrwx    1 root     root            17 Jan 25 14:06 data3 -> /opt/YAMon3/data//
lrwxrwxrwx    1 root     root            28 Jan 25 00:12 images -> /opt/YAMon2/Setup/www/images/
lrwxrwxrwx    1 root     root            24 Jan 25 00:12 js -> /opt/YAMon2/Setup/www/js/
lrwxrwxrwx    1 root     root            35 Jan 25 00:12 yamon2.2.html -> /opt/YAMon2/Setup/www/yamon2.2.html
lrwxrwxrwx    1 root     root            33 Jan 25 00:12 yamon2.html -> /opt/YAMon2/Setup/www/yamon2.html
lrwxrwxrwx    1 root     root            33 Jan 25 14:06 yamon3.html -> /opt/YAMon3/Setup/www/yamon3.html


Correcting the sym link fixed the issue for me.
VTecheira
DD-WRT User


Joined: 17 Sep 2014
Posts: 56

PostPosted: Mon Jan 25, 2016 20:00    Post subject: Reply with quote
I've noticed a minor bug.

On the Daily usage tab, the drop down list 6 groups and 17 devices.

In the actual display I only see 4 groups and 12 devices. Even explicitly selecting one of these 'hidden' groups from the drop down is not enough to get them to display.

YAMon2 dipslays 4 groups and 12 devices in the same area, so perhaps it's IPv6 related. I'll check make sure I have all the toggles set correctly.

[Edit]
So when I did a browser refresh of YAMon3, it went back to 4-12, but when I let it run for a bit it goes back to 6-17. A browser refresh get's back to 4-12 again.


Last edited by VTecheira on Tue Jan 26, 2016 6:07; edited 1 time in total
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 25, 2016 20:23    Post subject: Reply with quote
Argh, didn't catch that.
_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
elRadix
DD-WRT Novice


Joined: 16 Feb 2015
Posts: 20

PostPosted: Tue Jan 26, 2016 9:32    Post subject: Reply with quote
Running in R7000, i have errors running YAMon, also there is folder /opt/YAMon3/Setup/ - created during download/setup

Code:

YAMon Version:: 3.0.1

******************************************************************
10:30:06 2
**********************************************************
*  YAMon 3.0.1 was started
**********************************************************

cp: can't stat '/opt/YAMon3/Setup/www/*': No such file or directory
10:30:06 2   !!! Copy from /opt/YAMon3/Setup/www/* to /tmp/www/ failed  (1)
10:30:06 1   >>> Copy from /opt/YAMon3/data/* to /tmp/www/data3 successful (0)

******************************************************************
***  `yamon3.0.1.sh` has been started
******************************************************************

To stop the script:
 * run `shutdown.sh` [*RECOMMENDED*]
      e.g., `/opt/YAMon3/shutdown.sh`
 * or delete the `/tmp/YAMon3-running` directory
      e.g., `rmdir /tmp/YAMon3-running`
10:30:06 99 YAMon was started at 10:30:06
10:30:06 1   >>> Delaying 24s to align updates
10:30:30 1   >>> Starting main loop
./yamon3.0.1.sh: line 1039: arithmetic syntax error
./yamon3.0.1.sh: line 1039: arithmetic syntax error
kramanonline
DD-WRT Novice


Joined: 26 Jan 2016
Posts: 7

PostPosted: Tue Jan 26, 2016 13:30    Post subject: Yamon data not getting generated post YAMon3 Reply with quote
Hi,

Post upgrade of YAMon3, the data is not getting generated.. What did I miss

I had YAMon2 working earlier.

Thanks
KR



YAMon3.jpg
 Description:
 Filesize:  57.42 KB
 Viewed:  116419 Time(s)

YAMon3.jpg


kramanonline
DD-WRT Novice


Joined: 26 Jan 2016
Posts: 7

PostPosted: Tue Jan 26, 2016 14:09    Post subject: YAMon3 Alert Reply with quote
Now I get this Alert as well.

Something is amiss. Please help

Thanks
KR



YAMon3 Alert.jpg
 Description:
 Filesize:  47.33 KB
 Viewed:  116409 Time(s)

YAMon3 Alert.jpg


VTecheira
DD-WRT User


Joined: 17 Sep 2014
Posts: 56

PostPosted: Tue Jan 26, 2016 14:14    Post subject: Re: Yamon data not getting generated post YAMon3 Reply with quote
kramanonline wrote:
Hi,

Post upgrade of YAMon3, the data is not getting generated.. What did I miss

I had YAMon2 working earlier.

Thanks
KR


Can you provide some more details?

Did you confirm that Y3 is running?
Did you look to see if the data folder is being created?
Is your users.js populated?
Are your file permission set correctly?
Are the sym links to the data folder set correctly?
Did you try starting and stopping Y3?
What error messages, if any, are in the logs?
Did you review you config.file to make sure the settings are correct?
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Tue Jan 26, 2016 17:27    Post subject: Reply with quote
Getting this:
ReferenceError: _unlimited_start is not defined
util2.3.js:224:3

Constant "updating data storage format" on web page


Startup would not create js symlink so I added symlinks to top of startup script just to get it going.

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
h8red
DD-WRT Guru


Joined: 28 Jun 2011
Posts: 580
Location: Vilnius, Lithuania

PostPosted: Tue Jan 26, 2016 20:07    Post subject: Reply with quote
Hi, I have some trouble with install script. Something to do with "curl" command. Router tp-link 842 v2. Details in sig. Thanks

Quote:

Installing YAMon...

/tmp/install.sh: line 66: curl: not found
/tmp/install.sh: line 86: curl: not found
/tmp/install.sh: source: line 87: can't open '/opt/YAMon3/includes/getlatest.sh'


P.S. maybe there is "oldschool" distribution of v 3 to do install manually?

_________________
[Ramips] Nexx WT3020F Openwrt @kernel #4.14.167 (OpenVPN server, Wireguard server, AD blocking, SQM QOS, USB)


Last edited by h8red on Tue Jan 26, 2016 21:58; edited 1 time in total
Goto page 1, 2, 3 ... 149, 150, 151  Next Display posts from previous:    Page 1 of 151
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