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

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Goto page Previous  1, 2, 3, ... 149, 150, 151  Next
Author Message
shspvr
DD-WRT Novice


Joined: 24 Jan 2016
Posts: 15

PostPosted: Tue Jan 26, 2016 21:36    Post subject: Reply with quote
Hmm only this problem show up
/opt/YAMon3/yamon3.0.1.sh: line 1039: can't create /tmp/www/js/live_data3.js: nonexistent directory
Sponsor
shspvr
DD-WRT Novice


Joined: 24 Jan 2016
Posts: 15

PostPosted: Tue Jan 26, 2016 23:43    Post subject: Reply with quote
Look like AL forget something like make a Setup folder just make that folder and move all root files in to the Setup folder and do same with includes, strings and www folder.
h8red
DD-WRT Guru


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

PostPosted: Wed Jan 27, 2016 18:26    Post subject: Reply with quote
shspvr wrote:
Look like AL forget something like make a Setup folder just make that folder and move all root files in to the Setup folder and do same with includes, strings and www folder.


Where do I get those extra files? I can download setup.sh, yamon3.0.1.sh. What about other? I believe I should not use v2.x files?

_________________
[Ramips] Nexx WT3020F Openwrt @kernel #4.14.158 (OpenVPN server, Wireguard server, AD blocking, SQM QOS, USB)
shspvr
DD-WRT Novice


Joined: 24 Jan 2016
Posts: 15

PostPosted: Wed Jan 27, 2016 20:03    Post subject: Reply with quote
h8red wrote:

Where do I get those extra files? I can download setup.sh, yamon3.0.1.sh. What about other? I believe I should not use v2.x files?


#20. Do you want to launch YAMon now? Options: 0->No -or- 1->Yes(*)
Tell it No

After you install you needed edit the config.file and default config.file by change _wwwData="data3" to _wwwData="data3/"

check the /temp/www/ you may need make the folder called js being it not Creating the symbollic links js

/opt/YAMon3/Setup/startup.sh



YAMon3.jpg
 Description:
 Filesize:  185.98 KB
 Viewed:  12737 Time(s)

YAMon3.jpg


h8red
DD-WRT Guru


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

PostPosted: Wed Jan 27, 2016 20:31    Post subject: Reply with quote
Quote:
root@:~# YAMON='/opt/YAMon3/'
root@:~# SETUP="${YAMON}setup.sh"
root@:~# [ ! -d "$YAMON" ] && mkdir -p "$YAMON"
root@:~# wget http://www.usage-monitoring.com/current/YAMon3/Setup/setup.sh -O /opt/YAMon3/setup.sh
Connecting to www.usage-monitoring.com (66.96.147.69:80)
setup.sh 100% |****************************************************************************************************************************************************| 10056 0:00:00 ETA
root@:~# SETUP="${YAMON}setup.sh"
root@:~# chmod 700 "$SETUP"
root@:~# ls /opt/YAMon3 -a
. .. setup.sh
root@:~# $SETUP



This script will guide you through the process of setting up the
basic parameters in your `config.file`.

NB - a number of the advanced (aka less commonly used) settings
are not currently addressed in this script.

If you want to use any of those features, you can edit your
`config.file` directly (without actually having to stop the
YAMon script).


*** Cannot find either config.file or default config.file...
*** Please check your installation! ***
*** Exiting the script. ***

This is what I get after running setup

_________________
[Ramips] Nexx WT3020F Openwrt @kernel #4.14.158 (OpenVPN server, Wireguard server, AD blocking, SQM QOS, USB)
shspvr
DD-WRT Novice


Joined: 24 Jan 2016
Posts: 15

PostPosted: Wed Jan 27, 2016 20:58    Post subject: Reply with quote
Here how fix the symbollic links js
You stop the service
Edit yamon3.0.1.sh
replace lin3 93 to 100 with

local lcss=${_wwwCSS%/}
local limages=${_wwwImages%/}
local ljs=${_wwwJS%/}
local ldata=${_wwwData%/}
[ ! -h "$_wwwPath$lcss" ] && ln -s "${_baseDir}$_setupWebDir$lcss" "$_wwwPath$lcss"
[ ! -h "$_wwwPath$limages" ] && ln -s "${_baseDir}$_setupWebDir$limages" "$_wwwPath$limages"
[ ! -h "$_wwwPath$ljs" ] && ln -s "${_baseDir}$_setupWebDir$ljs" "$_wwwPath$ljs"
[ ! -h "$_wwwPath$ldata" ] && ln -s "${_baseDir}$_dataDir" "$_wwwPath$ldata"
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1346

PostPosted: Wed Jan 27, 2016 22:06    Post subject: Reply with quote
TypeError: $.md5 is not a function
util3.0.js:298:28

_________________
Segment 1 R9000 10Gb LAN, 1Gb ISP BS
Test Bed R9000 10Gb LAN
Wired AP 1 R9000 10Gb LAN
Wired AP 2 R9000 1Gb LAN
Wired AP 3 R9000 1Gb LAN
Test Bed R7800 1Gb LAN OpenWRT Kong
www.desipro.de/openwrt/ (Kong's)
YAMon usage-
www.monitoring.com/manualInstall.php
al_c
DD-WRT Guru


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

PostPosted: Thu Jan 28, 2016 16:16    Post subject: Reply with quote
Sorry! I've been tied up with my real job(s) for a couple of days... You guys have gotten way ahead of me Smile

I got another router for testing yesterday (TP-WD1043ND?) and immediately found lots of issues in install.sh... In particular, no curl... So install.sh now checks for this & fails over to wget... Yeah!

But, it is a cut-down version of wget which does not recognise the -C and/or --no-cache options.

Does anyone know how to clear the cache within dd-wrt?

I'll get caught up over the next couple of days

Al
shspvr
DD-WRT Novice


Joined: 24 Jan 2016
Posts: 15

PostPosted: Thu Jan 28, 2016 17:23    Post subject: Reply with quote
That cool al_c
al_c
DD-WRT Guru


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

PostPosted: Fri Jan 29, 2016 4:52    Post subject: Updated installer Reply with quote
An update to the installer...

[NB - attachment removed... see first page of this thread for the installer]

Just run the installer again and it will download fresh copies of the files. It will ask if you want to run setup.sh again (which should not be necessary).

Fixes include:
- checks to see whether `curl` is installed and uses `wget` if not
[NB - for some annoying reason, wget likes to get cached versions of the downloads so it does not always get a fresh copy like it is supposed to.
- only clears the screen if the clear function is available
- creates the /opt/YAMon3/ directory if it does not exist
- downloads yamon3.0.2.sh

yamon3.0.2 includes the following fixes;
- I create /tmp/www/js if it does not exist
- the symlinks are created properly.
- now makes a local copy if _doLocalFiles is non-zero (NB - I've changed default config a bit... the suggested values for doLocalFiles are now 0 & 1. As above, I try to use curl but will fail over to wget if needed...
[NB - doLocalFiles does not yet copy the images... I'll add that shortly]

If you are running v2 & v3 in parallel, you'll have to do some playing around with parameters in config.file so that the v3 reports look at the right directory and JS files... I'll post more about that shortly...

Thanks for your feedback.

Al


Last edited by al_c on Tue Feb 02, 2016 4:02; edited 2 times in total
al_c
DD-WRT Guru


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

PostPosted: Fri Jan 29, 2016 5:01    Post subject: Reply with quote
ddaniel51 wrote:
TypeError: $.md5 is not a function
util3.0.js:298:28

I've not seen that... how did you produce the error? Is it repeatable?
Are you using local copies? Did `jquery.md5.min.js` download?

Al
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1346

PostPosted: Fri Jan 29, 2016 5:18    Post subject: Reply with quote
Gone now that the page is working.........
With the folders in /Setup

Wasn't using localfiles.

_________________
Segment 1 R9000 10Gb LAN, 1Gb ISP BS
Test Bed R9000 10Gb LAN
Wired AP 1 R9000 10Gb LAN
Wired AP 2 R9000 1Gb LAN
Wired AP 3 R9000 1Gb LAN
Test Bed R7800 1Gb LAN OpenWRT Kong
www.desipro.de/openwrt/ (Kong's)
YAMon usage-
www.monitoring.com/manualInstall.php


Last edited by ddaniel51 on Fri Jan 29, 2016 7:37; edited 1 time in total
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1346

PostPosted: Fri Jan 29, 2016 7:07    Post subject: Reply with quote
Latest on R7000, Kongs.


DD-WRT v3.0-r28815M kongac (c) 2016 NewMedia-NET GmbH
Release: 01/15/16

R7000_2 login: root
Password:
==========================================================

___ ___ _ _____ ______ ____ ___
/ _ \/ _ \___| | /| / / _ \/_ __/ _ __|_ / / _ \
/ // / // /___/ |/ |/ / , _/ / / | |/ //_ <_/ // /
/____/____/ |__/|__/_/|_| /_/ |___/____(_)___/

DD-WRT v3.0
http://www.dd-wrt.com

==========================================================


BusyBox v1.24.1 (2016-01-15 09:51:38 CET) built-in shell (ash)

root@R7000_2:~# ystop

******************************************************************
***
*** Please wait for the message indicating that the script
*** has stopped... this may take up to 30 seconds
***
******************************************************************

..............................root@R7000_2:~# /opt/install.sh

**************************************
Welcome to the YAMon3.0 installer

Please report any issues to
install@usage-monitoring.com
**************************************

Please specify the fully qualified path to your
installation directory - e.g., `/opt/YAMon3/`.

Either
- hit <enter> to accept `/opt/YAMon3/`, or
- type your preferred installation location:

**************************************
Installing YAMon...

cat: can't open '/tmp/yamonsetup.txt': No such file or directory
rm: can't remove '/tmp/yamonsetup.txt': No such file or directory
chmod: /opt/YAMon3/setup.sh: No such file or directory
/opt/install.sh: source: line 99: can't open '/opt/YAMon3/includes/getlatest.sh'
root@R7000_2:~# cd /opt
root@R7000_2:/opt# /opt/install.sh

**************************************
Welcome to the YAMon3.0 installer

Please report any issues to
install@usage-monitoring.com
**************************************

Please specify the fully qualified path to your
installation directory - e.g., `/opt/YAMon3/`.

Either
- hit <enter> to accept `/opt/YAMon3/`, or
- type your preferred installation location:

**************************************
Installing YAMon...

cat: can't open '/tmp/yamonsetup.txt': No such file or directory
rm: can't remove '/tmp/yamonsetup.txt': No such file or directory
chmod: /opt/YAMon3/setup.sh: No such file or directory
/opt/install.sh: source: line 99: can't open '/opt/YAMon3/includes/getlatest.sh'
root@R7000_2:/opt# /opt/install.sh

**************************************
Welcome to the YAMon3.0 installer

Please report any issues to
install@usage-monitoring.com
**************************************

Please specify the fully qualified path to your
installation directory - e.g., `/opt/YAMon3/`.

Either
- hit <enter> to accept `/opt/YAMon3/`, or
- type your preferred installation location: /opt/YAMon3/

**************************************
Installing YAMon...

cat: can't open '/tmp/yamonsetup.txt': No such file or directory
rm: can't remove '/tmp/yamonsetup.txt': No such file or directory
chmod: /opt/YAMon3/setup.sh: No such file or directory
/opt/install.sh: source: line 99: can't open '/opt/YAMon3/includes/getlatest.sh'
root@R7000_2:/opt#

_________________
Segment 1 R9000 10Gb LAN, 1Gb ISP BS
Test Bed R9000 10Gb LAN
Wired AP 1 R9000 10Gb LAN
Wired AP 2 R9000 1Gb LAN
Wired AP 3 R9000 1Gb LAN
Test Bed R7800 1Gb LAN OpenWRT Kong
www.desipro.de/openwrt/ (Kong's)
YAMon usage-
www.monitoring.com/manualInstall.php
elRadix
DD-WRT Novice


Joined: 16 Feb 2015
Posts: 20

PostPosted: Fri Jan 29, 2016 17:21    Post subject: Reply with quote
Fresh R7000 install

errors:
Installing YAMon...

cat: can't open '/tmp/yamonsetup.txt': No such file or directory
rm: can't remove '/tmp/yamonsetup.txt': No such file or directory

Then Running YAMon3

**********************************************************
* YAMon 3.0.2 was started
**********************************************************

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

******************************************************************
*** `yamon3.0.2.sh` has been started
******************************************************************
al_c
DD-WRT Guru


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

PostPosted: Fri Jan 29, 2016 17:23    Post subject: Reply with quote
elRadix wrote:
Fresh R7000 install

errors:
Installing YAMon...

cat: can't open '/tmp/yamonsetup.txt': No such file or directory
rm: can't remove '/tmp/yamonsetup.txt': No such file or directory

Then Running YAMon3

**********************************************************
* YAMon 3.0.2 was started
**********************************************************

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

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

do you still have a reference to setup in config.file? If yes, remove it.
Goto page Previous  1, 2, 3, ... 149, 150, 151  Next Display posts from previous:    Page 2 of 151
Post new topic   Reply to topic    DD-WRT Forum 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