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 Previous  1, 2, 3 ... 143, 144, 145 ... 149, 150, 151  Next
Author Message
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 373

PostPosted: Sat Mar 17, 2018 2:50    Post subject: Reply with quote
It seems the hourly data file is a problem. Also the h2m.sh script doesn't solve the warning about gaps. I've seen errors change between first install and days later so whatever yamon does at midnight with a 29th isp billing date should be tested.


yamon.png
 Description:
 Filesize:  71.11 KB
 Viewed:  4767 Time(s)

yamon.png


Sponsor
al_c
DD-WRT Guru


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

PostPosted: Sat Mar 17, 2018 17:27    Post subject: Reply with quote
yoyoma2 wrote:
It seems the hourly data file is a problem. Also the h2m.sh script doesn't solve the warning about gaps. I've seen errors change between first install and days later so whatever yamon does at midnight with a 29th isp billing date should be tested.


On your settings tab, please check the "Use `/dev` JS & CSS files" option in the `Debug` area.

Then reload your reports with a <ctrl>+F5 (to clear the cache)...

Do things load properly now? It works in my test environment. I'd like to confirm it is working in yours before pushing the updates to the current server

See also http://usage-monitoring.com/help/?t=clear_summary_entries to clear any bad entries which may have creeped into the billing interval history table on the Summary tab.

Please let me know if this fixes the problem for you.

Thanks for your patience.
wild1
DD-WRT Novice


Joined: 05 Mar 2016
Posts: 24

PostPosted: Sat Mar 17, 2018 17:29    Post subject: YAMon 3.4.3 is not working Reply with quote
I have been running YAMon on a WRT1900AC V1 for a couple of years. I ran the install today for 3.4 because I have added a BRIDGED Wireless extender.

When I start YAMon 3.4.3 I receive "sh: out of range" continuously.
When I go to http://192.168.1.1/user/yamon.html I receive

"192.168.1.1 says

users_created is not defined... there is likely an error in your users.js"

The users.js is full of

ud_a({"mac":"0" (dup), (dup)"ip":" (dup)" (dup), (dup)"ip6":" (dup)" (dup), (dup)"owner":"Unknown" (dup), (dup)"name":"android-zzzzzzzzzzzzzzzzzz" (dup), (dup)"colour":" (dup)" (dup), (dup)"added":"2018-03-17 13:21:13" (dup), (dup)"updated":"2018-03-17 13:21:13" (dup), (dup)"last-seen":"2018-03-17 13:21:13"})

ud_a({"mac":"0" (dup),"ip":" (dup)", (dup)"ip6":" (dup)", (dup)"owner":"Unknown" (dup),"name":"android-zzzzzzzzzzzzzzzzzz" (dup),"colour":" (dup)", (dup)"added":"2018-03-17 13:21:27" (dup),"updated":"2018-03-17 13:21:27" (dup),"last-seen":"2018-03-17 13:21:27"})

If I stop YAMon, rename users.js, and start YAMon the same errors occur.

The Daily Usage, Monthly Usage and Open the Devices tabs do not open.
al_c
DD-WRT Guru


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

PostPosted: Sat Mar 17, 2018 18:06    Post subject: Re: YAMon 3.4.3 is not working Reply with quote
wild1 wrote:
I have been running YAMon on a WRT1900AC V1 for a couple of years. I ran the install today for 3.4 because I have added a BRIDGED Wireless extender.

When I start YAMon 3.4.3 I receive "sh: out of range" continuously.
When I go to http://192.168.1.1/user/yamon.html I receive

"192.168.1.1 says

users_created is not defined... there is likely an error in your users.js"

The users.js is full of

ud_a({"mac":"0" (dup), (dup)"ip":" (dup)" (dup), (dup)"ip6":" (dup)" (dup), (dup)"owner":"Unknown" (dup), (dup)"name":"android-zzzzzzzzzzzzzzzzzz" (dup), (dup)"colour":" (dup)" (dup), (dup)"added":"2018-03-17 13:21:13" (dup), (dup)"updated":"2018-03-17 13:21:13" (dup), (dup)"last-seen":"2018-03-17 13:21:13"})

ud_a({"mac":"0" (dup),"ip":" (dup)", (dup)"ip6":" (dup)", (dup)"owner":"Unknown" (dup),"name":"android-zzzzzzzzzzzzzzzzzz" (dup),"colour":" (dup)", (dup)"added":"2018-03-17 13:21:27" (dup),"updated":"2018-03-17 13:21:27" (dup),"last-seen":"2018-03-17 13:21:27"})

If I stop YAMon, rename users.js, and start YAMon the same errors occur.

The Daily Usage, Monthly Usage and Open the Devices tabs do not open.

Sorry for the grief. There was a *horrible* bug in v3.4.3 that clobbered your users.js with all of those extra (dup) entries. v3.4.4 fixes that issue.

To cleanse your users.js file,
1. open a PuTTY or equivalent terminal app window
2. stop the script (by running /opt/YAMon3/shutdown.sh)
3. then run
Code:
cp /opt/YAMon3/data/users.js /opt/YAMon3/data/users.js.bak
cat /opt/YAMon3/data/users.js | grep -v "\"mac\":\"0\"" | sed -e "s~\" (dup),~\",~g" | sed -e "s~, (dup)\"~,\"~g" | sed -e "s~\" (dup)~\"~g" > /opt/YAMon3/data/users2.js


This will backup your existing file and clear out *almost* all of the extraneous entries... you should check the file to make sure everything is copacetic (in particular, look for lingering (dup)s hiding within mac addresses).

Once your users.js is good, re-run `/opt/install dev` to update to v3.4.4.

Thanks for your patience.

Al


Last edited by al_c on Sat Mar 17, 2018 22:43; edited 1 time in total
wild1
DD-WRT Novice


Joined: 05 Mar 2016
Posts: 24

PostPosted: Sat Mar 17, 2018 20:33    Post subject: Reply with quote
cat cp ..... does not make sense. is it a typo?
I get a users2.js that is empty. Assuming I figure out how to get the "cat cp" command working do I rename users2.js

Thanks Bob
wild1
DD-WRT Novice


Joined: 05 Mar 2016
Posts: 24

PostPosted: Sat Mar 17, 2018 20:59    Post subject: Reply with quote
i did the following

cp /opt/YAMon3/data/users.js /opt/YAMon3/data/users.js.bak
cd /opt/YAMon/data
cat users.js | grep -v "\"mac\":\"0\"" | sed -e "s~\" (dup),~\",~g" | sed -e "s~, (dup)\"~,\"~g" | sed -e "s~\" (dup)~\"~g" > /opt/YAMon3/data/users2.js
rm users.js
mv users2.js users.js

install.sh dev
(using a and added Bridge macs)

YAMon page says :
Yet Another Monitor HTML: 3.4.0 / Script: 3.4.4

still no access to tabs Daily, Monthly and Device.
al_c
DD-WRT Guru


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

PostPosted: Sat Mar 17, 2018 22:44    Post subject: Reply with quote
wild1 wrote:
cat cp ..... does not make sense. is it a typo?
I get a users2.js that is empty. Assuming I figure out how to get the "cat cp" command working do I rename users2.js

Thanks Bob
Oops... fixed in the previous message so that others won't get stumped
al_c
DD-WRT Guru


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

PostPosted: Sat Mar 17, 2018 22:48    Post subject: Reply with quote
wild1 wrote:
i did the following

cp /opt/YAMon3/data/users.js /opt/YAMon3/data/users.js.bak
cd /opt/YAMon/data
cat users.js | grep -v "\"mac\":\"0\"" | sed -e "s~\" (dup),~\",~g" | sed -e "s~, (dup)\"~,\"~g" | sed -e "s~\" (dup)~\"~g" > /opt/YAMon3/data/users2.js
rm users.js
mv users2.js users.js

install.sh dev
(using a and added Bridge macs)

YAMon page says :
Yet Another Monitor HTML: 3.4.0 / Script: 3.4.4

still no access to tabs Daily, Monthly and Device.


are you getting any messages on the screen? Is the yellow alert visible beside the tabs? please send screenshots to questions@usage-monitoring.com and perhaps copy of your users.js (you will have to change the file extension to something other than .js (.txt works)

thanks for your patience & assistance.
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 373

PostPosted: Sun Mar 18, 2018 0:10    Post subject: Reply with quote
al_c wrote:
On your settings tab, please check the "Use `/dev` JS & CSS files" option in the `Debug` area.

Then reload your reports with a <ctrl>+F5 (to clear the cache)...

Do things load properly now? It works in my test environment. I'd like to confirm it is working in yours before pushing the updates to the current server
The reports load after doing that! The fix can go live IMHO.
al_c
DD-WRT Guru


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

PostPosted: Sun Mar 18, 2018 0:27    Post subject: Reply with quote
yoyoma2 wrote:
al_c wrote:
On your settings tab, please check the "Use `/dev` JS & CSS files" option in the `Debug` area.

Then reload your reports with a <ctrl>+F5 (to clear the cache)...

Do things load properly now? It works in my test environment. I'd like to confirm it is working in yours before pushing the updates to the current server
The reports load after doing that! The fix can go live IMHO.


Woo hoo! Thanks for the update (and your patience!)

Is there anyone else out there with _ispBillingDay of 29, 30 or 31? Can you also confirm that this fixes your issues?

Al
Mr Dewey
DD-WRT Novice


Joined: 09 Mar 2018
Posts: 2

PostPosted: Sun Mar 18, 2018 15:07    Post subject: Reply with quote
al_c wrote:
Woo hoo! Thanks for the update (and your patience!)

Is there anyone else out there with _ispBillingDay of 29, 30 or 31? Can you also confirm that this fixes your issues?

Al


The fix worked for me! Thanks Al!
tdf2001
DD-WRT Novice


Joined: 07 May 2009
Posts: 24

PostPosted: Sun Mar 18, 2018 17:34    Post subject: Yamon shutdown when autostarted with dd-wrt Reply with quote
I installed Yamon today and noticed that it does not autostart. Below is a log snippet. Yamon starts just fine and then receives the shutdown command. I then started it manually with no issues.

Why is that?

11:53:10 99 New device New Device-13 (group Unknown) was added to the network: 00:0c:29:5b:da:a2 & 192.168.1.201 (0)
11:53:11 99 New device New Device-14 (group Unknown) was added to the network: 00:0c:29:d9:52:ab & 192.168.1.209 (0)
11:53:11 1 >>> 2 changes in users.js
11:53:38 1 === shutDown ===
11:53:39 2 `yamon.sh` has been stopped
12:24:23 1 YAMon:: version 3.4.3 _loglevel: 1
12:24:23 1 Installed firmware: DD-WRT 33675M kongac
al_c
DD-WRT Guru


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

PostPosted: Sun Mar 18, 2018 18:55    Post subject: Reply with quote
Mr Dewey wrote:
al_c wrote:
Woo hoo! Thanks for the update (and your patience!)

Is there anyone else out there with _ispBillingDay of 29, 30 or 31? Can you also confirm that this fixes your issues?

Al


The fix worked for me! Thanks Al!


Double woo hoo... pushing it live
al_c
DD-WRT Guru


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

PostPosted: Sun Mar 18, 2018 19:26    Post subject: Re: Yamon shutdown when autostarted with dd-wrt Reply with quote
tdf2001 wrote:
I installed Yamon today and noticed that it does not autostart. Below is a log snippet. Yamon starts just fine and then receives the shutdown command. I then started it manually with no issues.

Why is that?

11:53:10 99 New device New Device-13 (group Unknown) was added to the network: 00:0c:29:5b:da:a2 & 192.168.1.201 (0)
11:53:11 99 New device New Device-14 (group Unknown) was added to the network: 00:0c:29:d9:52:ab & 192.168.1.209 (0)
11:53:11 1 >>> 2 changes in users.js
11:53:38 1 === shutDown ===
11:53:39 2 `yamon.sh` has been stopped
12:24:23 1 YAMon:: version 3.4.3 _loglevel: 1
12:24:23 1 Installed firmware: DD-WRT 33675M kongac

no idea why this would be happening. Noone else has reported it to me...

Set _loglevel=-1 and send the logs to questions@usage-monitoring.com

What do you have in your startup up commands in the DD-WRT admin GUI (administration-->commands)?

Al
Kambo
DD-WRT Novice


Joined: 22 Jan 2018
Posts: 16

PostPosted: Mon Mar 19, 2018 4:05    Post subject: Re: No Download Data?? Reply with quote
aloss wrote:
Kambo wrote:
My issues is that Yamon is not reading any download activity. It is getting the upload packets but 0 on all devices for downloads. I am running DD WRT on Archer 9. I just intalled the new version too to see if that was different but no. I did get this screen capture of when it was first starting up about the iptables could this be related?


Yes! This is the problem I have been reporting here!
And I don't think it's a problem with YAMon, but DD-WRT one. I say this with some security because I see the same problem in the iftop utility (download activities are not read)

Kambo, I suggest you test r32753 release of DD-WRT. This is the last version where YAMon was able to read the download activities on my router. If it works on your router, it will be another case with the same behavior as mine.


Hi, Thanks for the suggestion. I think it is something wrong with DD-Wrt too. I am running r32753 now and still no recorded download activity???

So I am afraid there is another issue with mine.

One thing that may be different it my physical router setup.

I have the internet coming in a ISP provided router on the wireless 4g network I have my Archer 9 plugged into this Lan to Lan. Archer is DHCP and all other devices connect through it. The wireless on the ISP router is turned off.

Not sure if that sparks anyones ideas on possible solutions.
Goto page Previous  1, 2, 3 ... 143, 144, 145 ... 149, 150, 151  Next Display posts from previous:    Page 144 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