YAMon 3.4 - usage monitoring for your router

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... , 44, 45, 46  Next
Author Message
dlewando
DD-WRT Novice


Joined: 24 Aug 2012
Posts: 16
Location: germany

PostPosted: Sun Jan 23, 2022 12:06    Post subject: http/https issue Reply with quote
Fried Chicken wrote:
mac913 wrote:
yoyoma2 wrote:
Here's a hacked version of the yamon 3.4.x install script. It uses https instead of http and then automatically edits the newly downloaded getlatest.sh to also use https instead of http (an automated version of what was described in the previous post).


Lately YAMon 3.4.6 would not load and the web page showing "connecting to www.gstatic.com" and never connecting and the YAMon not loading.

I installed the "hacked" install of YAMon 3.4.7 and has the same issue. Any body else having the same problem?

TIA!


Why does yamon need anything from the internet to run?


Hi,
I already wrote a Mail to install@usage-monitoring.com 1 month ago, but no answer till today.

I get an error message installing yamon 4. I changed the install script from http to https, because it's getting 302 error code (http to https redirect). but after, I get the second error message:

Code:
dd-wrt-monitor login: root
Password:
==========================================================
 
     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/
                                                   
                       DD-WRT v3.0
                   https://www.dd-wrt.com


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


BusyBox v1.34.1 (2021-11-18 01:41:41 +07) built-in shell (ash)

root@dd-wrt-monitor:~#
root@dd-wrt-monitor:~# /opt/install.sh

**************************************
   Welcome to the YAMon installer

   For installation tips & tricks, see
      https://usage-monitoring.com/install
         
   Please report any issues to
      install@usage-monitoring.com
         
**************************************
 
Would you like to install YAMon on your router?
Either
        - hit <enter> or `y` for yes, or `n` for no:


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

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

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

/opt/install.sh: /opt/YAMon4/includes/getlatest.sh: line 2: syntax error: unexpected newline
root@dd-wrt-monitor:~# cd /opt/
root@dd-wrt-monitor:/opt# ls -la
drwxr-xr-x    4 root     root          4096 Dec 30 19:51 .
drwxr-xr-x   15 root     root           231 Nov 17 19:47 ..
drwxr-xr-x    4 root     root          4096 Dec 30 19:45 2t
drwxr-xr-x    3 root     root          4096 Dec 30 19:51 YAMon4
-rwxr-xr-x    1 root     root          4138 Dec 30 19:49 install.sh
root@dd-wrt-monitor:/opt# cd YAMon4/
root@dd-wrt-monitor:/opt/YAMon4# ls -la
drwxr-xr-x    3 root     root          4096 Dec 30 19:51 .
drwxr-xr-x    4 root     root          4096 Dec 30 19:51 ..
drwxr-xr-x    2 root     root          4096 Dec 30 19:51 includes
root@dd-wrt-monitor:/opt/YAMon4# cd includes/
root@dd-wrt-monitor:/opt/YAMon4/includes# ls -la
drwxr-xr-x    2 root     root          4096 Dec 30 19:51 .
drwxr-xr-x    3 root     root          4096 Dec 30 19:51 ..
-rw-r--r--    1 root     root           266 Dec 30 19:51 getlatest.sh
root@dd-wrt-monitor:/opt/YAMon4/includes# cat getlatest.sh
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://usage-monitoring.com/current/YAMon4/Setup/includes/getlatest.sh?1640890294">here</a>.</p>
</body></html>
root@dd-wrt-monitor:/opt/YAMon4/includes# cd ..
root@dd-wrt-monitor:/opt/YAMon4# cd ..
root@dd-wrt-monitor:/opt# vi install.sh
root@dd-wrt-monitor:/opt#
root@dd-wrt-monitor:/opt# ./install.sh

**************************************
   Welcome to the YAMon installer

   For installation tips & tricks, see
      https://usage-monitoring.com/install
         
   Please report any issues to
      install@usage-monitoring.com
         
**************************************
 
Would you like to install YAMon on your router?
Either
        - hit <enter> or `y` for yes, or `n` for no: y


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

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

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


Downloading the latest version of:
  * /opt/YAMon4/includes/version.sh
     > Loading source for /opt/YAMon4/includes/version.sh
./install.sh: /opt/YAMon4/includes/version.sh: line 2: syntax error: unexpected newline
root@dd-wrt-monitor:/opt# cat /opt/YAMon4/includes/version.sh
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://www.usage-monitoring.com/current/YAMon4/Setup/includes/version.sh?1640891585">here</a>.</p>
</body></html>
root@dd-wrt-monitor:/opt# vi install.sh
root@dd-wrt-monitor:/opt#


So the problem is that also the new downloaded files includes the "http" instead of "https" link
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Sun Jan 23, 2022 12:40    Post subject: Reply with quote
This thread is for 3.4.x, not 4.x.... and YaMon is not under active development AFAIK...
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
dlewando
DD-WRT Novice


Joined: 24 Aug 2012
Posts: 16
Location: germany

PostPosted: Sun Jan 23, 2022 13:51    Post subject: Reply with quote
Ya, I gave up with Yamon4. Installed the hacked Yamon3 version from ddaniel51
It's running well now. Thx ddaniel51 Smile
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Mon Jan 24, 2022 0:45    Post subject: Reply with quote
dlewando wrote:
Ya, I gave up with Yamon4. Installed the hacked Yamon3 version from ddaniel51
It's running well now. Thx ddaniel51 Smile


You are quite welcome.

_________________
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: Wed Jan 26, 2022 4:37    Post subject: Reply with quote
kernel-panic69 wrote:
This thread is for 3.4.x, not 4.x.... and YaMon is not under active development AFAIK...


Just for grins I sent Al a PayPal a couple of days ago to see if he is awake. Wink


As of 4/30/2022 there has been no response.

_________________
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


Last edited by ddaniel51 on Sat Apr 30, 2022 8:31; edited 1 time in total
MattM1121
DD-WRT Novice


Joined: 08 May 2018
Posts: 2

PostPosted: Mon Apr 04, 2022 17:21    Post subject: Current Yamon Reply with quote
Greetings,

I was a YaMon user since 2018. Sometime last year it stopped working and I just assumed since it was abandoned that it wouldn't work anymore. But now I see it's still useful to a certain extent. Looking at the summary page I can see rollup data since 2018. Where is that coming from? Any idea? It's the same router so I haven't changed anything.

My USB drive went bad so I couldn't get to my install dir and had to set up a new install on a new USB device. I used the install.sh that was posted here and now it seems I have it up and running again.

I did have a key for the database functionality, but I suspect it's trashed along with the USB drive. Anyone know how to get around that? Or have a key? I'll keep looking in my email archive but I doubt I'll find it.

I currently have all my data going in and out of a single port on a Cisco switch. That port data is mirrored to another port that has a Windows server hooked up to it. Does anyone know if there's an equivalent app that might work like YaMon but with the port set up I described?

Also, is there anything that needs to be done to ensure this app keeps working? Is there anything we can do as end users to keep it going? After all it is a good app.

Thanks
-Matt
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Apr 06, 2022 17:56    Post subject: Re: Current Yamon Reply with quote
MattM1121 wrote:
I did have a key for the database functionality, but I suspect it's trashed along with the USB drive. Anyone know how to get around that? Or have a key? I'll keep looking in my email archive but I doubt I'll find it.

Does the "Get Key" button on the yamon settings tab no longer work? I never used this feature and don't want to try it myself.

From yamon's readme.txt: "With this feature enabled, when you change your settings, a copy of the the localStorage values on that machine are written to your (private) database at my usage-monitoring.com domain." This suggests you can't share a database key with someone else or you'll mess up each other's yamon settings.

When you made a donation he gave you a key to silence the nag messages but that's a different key.

MattM1121 wrote:
Also, is there anything that needs to be done to ensure this app keeps working? Is there anything we can do as end users to keep it going? After all it is a good app.

Yes it's a great app but all the dependencies on Al's server make it hard for a community supported version.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Wed Apr 06, 2022 20:04    Post subject: Re: Current Yamon Reply with quote
yoyoma2 wrote:
MattM1121 wrote:
Also, is there anything that needs to be done to ensure this app keeps working? Is there anything we can do as end users to keep it going? After all it is a good app.

Yes it's a great app but all the dependencies on Al's server make it hard for a community supported version.

I haven't looked at it in so long, I forget specifics. If the dependencies are only hosted and do not change, it probably wouldn't take much to migrate the files (if memory serves) to the local install and get past this.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
theboyk
DD-WRT Novice


Joined: 01 Jun 2010
Posts: 5

PostPosted: Thu Apr 21, 2022 19:23    Post subject: Re: YAMon 3.4 - usage monitoring for your router Reply with quote
I know I'm beating a dead horse here, but over a couple months this summer I will be sharing a neighbours internet connection in a rural location (via a DD-WRT install in repeater mode). I just want to keep an eye on the bandwidth usage every couple days and installed YAMon to do this (if there's a better solution than YAmon, I'm all ears). It's up and running and just have a couple questions I'm hoping someone might be able to answer:

1. On the daily usage report, what's the difference between the "total" value and the "measured @ router" total?

2. Is there a way to "reset" the data to start fresh?

Thanks,
Kristin.
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Sun Apr 24, 2022 15:16    Post subject: Re: YAMon 3.4 - usage monitoring for your router Reply with quote
theboyk wrote:
1. On the daily usage report, what's the difference between the "total" value and the "measured @ router" total?

As a dumb user my understanding is that yamon counts the uploads and downloads for each detected device. The router (dd-wrt here, but yamon runs on others) keeps a global tally of uploads and downloads. Unfortunately yamon's added up individual device totals don't exactly match dd-wrt's overall traffic accounting. Some reading material.

theboyk wrote:
2. Is there a way to "reset" the data to start fresh?
You could try deleting stuff in /opt/YAMon3/data/2022/[month number] but I've had annoying warnings from Yamon about holes in the data when yamon didn't run for a while due to a dead USB stick. Note the April data still goes into the March folder until you cross the billing date so don't just delete /opt/YAMon3/data/2022/03 thinking April is unaffected (unless billing date is the 1st). Oh and stop yamon before deleting yamon data.
theboyk
DD-WRT Novice


Joined: 01 Jun 2010
Posts: 5

PostPosted: Mon Apr 25, 2022 17:39    Post subject: Re: YAMon 3.4 - usage monitoring for your router Reply with quote
Much appreciated.
k.

Quote:
As a dumb user my understanding is that yamon counts the uploads and downloads for each detected device. The router (dd-wrt here, but yamon runs on others) keeps a global tally of uploads and downloads. Unfortunately yamon's added up individual device totals don't exactly match dd-wrt's overall traffic accounting. Some reading material.
Jouster
DD-WRT Novice


Joined: 28 Jun 2017
Posts: 12

PostPosted: Tue Sep 06, 2022 11:58    Post subject: YAMON3...potential replacements Reply with quote
I've been very lucky to be using Yamon3...since 2018 with very little in the way of issues...it really does do all that I need but it's fair to say I rely on it heavily and would be gutted if it ever totally died.

I did try to upgrade to 4.0 but had nothing but issues, so slipped back to the OG which for me really does do all I want, apart from maybe a dark mode...but Im far from unhappy...

So wondering if anyone is aware of anything remotely similar that can do what so many of us are used to having access to via YAMON.....I'm far from a coder so would have absolutely no idea of how to go about setting something up myself...and I am therefore heavily reliant on people such as AlC to create such incredible tools for us as a community to us.

This post is probably a non-starter but thought I would ask away anyway

And yes this appears to be something I post on a yearly basis
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Tue Sep 06, 2022 12:48    Post subject: Reply with quote
dark/light mode is simple, within the CSS stylesheet you separate the relevant background/text/border colors into @media (prefers-color-scheme: dark) { } and @media (prefers-color-scheme: light) { } and choose different colors and it will be dark or light depending on what your browser is set to.

With a little more hacking and using @imports you can even match the elegant color style DD-WRT is set to.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Tue Sep 06, 2022 14:01    Post subject: Re: YAMON3...potential replacements Reply with quote
Jouster wrote:
I've been very lucky to be using Yamon3...since 2018 with very little in the way of issues...it really does do all that I need but it's fair to say I rely on it heavily and would be gutted if it ever totally died.
I have set _doLocalFiles=1 in config.file as explained here. If al_c completely shut down usage-monitoring.com and problems came up, someone here would probably hack a version that mostly works without usage-monitoring.com.
Bricoleur
DD-WRT User


Joined: 23 Dec 2015
Posts: 55

PostPosted: Sun Sep 11, 2022 19:21    Post subject: Re: YAMON3...potential replacements Reply with quote
I run Yamon on my router since 3 years without any problem
- Yamon HTML: 3.4.5 / Script: 3.4.7
- Router (Dlink-DIR880L) Firmware: DD-WRT v3.0-r37305 std (10/10/1Cool

After a power outage I had to reset my router, but since that time Yamon calculates that 10% of traffic...

What should I modify in DD-WRT so that the data corresponds to reality?

Here it is for today:



Image2.jpg
 Description:
 Filesize:  24.54 KB
 Viewed:  2263 Time(s)

Image2.jpg



Image1.jpg
 Description:
 Filesize:  253.73 KB
 Viewed:  2258 Time(s)

Image1.jpg


Goto page Previous  1, 2, 3 ... , 44, 45, 46  Next Display posts from previous:    Page 45 of 46
Post new topic   Reply to topic    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