Posted: Mon Jun 01, 2015 13:22 Post subject: Re: YAMon 2.1.0b is now available
al_c wrote:
Three new features in this release
1. You can now opt to organize the files within your data directory (so you can have sub-directories for month and/or year)
2. You can `symlink` to the data directory (meaning that you do not need separate copies on your USB drive and in the /tmp/www/ directories).
3. The script now limits you to 24 sendAlert messages per day (the last one being an alert that you've gone over your limit)
#1 & 2 were requested by particular users... sorry for forgetting who deserves the credit for these features.
I've also made a number of changes to how the script keeps internal track of the current/active IP & MAC addresses on the router. Hopefully this'll help to address a number of issues some of you have had over the past year or so.
As usual, let me know if you have any issues (or new feature requests)... IPv6 is next on the list (honest!)
Al
If you're trying the new `organize` data feature *and* use `_doLocalFiles`, someone just pointed out that I forgot to update the JS files at usage.monitoring.com... please restart the script to get the proper versions of the JavaScript files.
Posted: Mon Jun 01, 2015 13:54 Post subject: Changing settings
This might be covered somewhere in the thread, but I didn't find it in a search:
Using 2.0.18d without using the "share settings" database, I changed my data cap from 250GB to 500GB by typing in the number 500. Since I'm not sharing settings I have no save button, but the data seemed to be auto-saved because page 1 showed the usage as a percentage of 500GB.
After restarting the browser, the limit went back to 250GB. I tried several things to make the 500 number persist. What worked was using the arrow buttons in the entry field to set 500 instead of typing the number 500.
Thanks for the script. It's always close enough to my ISP to avoid going over my limit.
34) You will be asked to confirm everything *remember has to be the same as config file before if
you didn’t modify dont worry* click on the yellow/green check marks then the page will be
refreshed
-------
Why i don't see any yellow/green check marks at all ? Looks like the script is running for me i see the folder /tmp/YAMon-running/ but it is empty inside.
Also the page https://192.168.1.1/user/yamon2.html -> just looks like html page text with buttons ... I can click the buttons but nothing happens.
Any suggestion to troubleshoot it ?
I noticed another thing when first time I run the script:
Yet Another Monitor
Copyright (c) 2013-2014 Al Caughey
All rights reserved.
http://usage-monitoring.com
Launch options:
+ <path to yamon2.sh>
+ <path to yamon2.sh> <path to config.file>
+ <path to yamon2.sh> --help
+ <path to yamon2.sh> --stop
YAMon :: 2.1.0b
******************************************************************
* You have started `yamon.sh` without any parameters.
* The script will use the settings in `config.file` in your
* `Setup` directory.
******************************************************************
sed: unsupported command *
------
Any ideas "sed: unsupported command *" ??
Appreciate that.
Posted: Wed Jun 03, 2015 19:05 Post subject: Re: Waiting for devices to load
andyrav wrote:
Hi i have installed version 2.1.0b
when i go to the url i am getting
Waiting for devices to load and then a browser msg saying javascript error
Uncaught ReferenceError: users_created is not defined yamon.js:728
Uncaught TypeError: Cannot read property 'down' of undefined yamon.js:1293
any ideas?
Sorry you're having problems.
To anyone looking for help with issues... Please PM your log files to me (rather than attaching them to a message in this form). The logs contain MAC address which uniquely identify your devices and therefore are useful to hackers.
With that public message out of the way, it sounds to me like your users.js file is either missing or corrupted.
You should find one copy of users.js in /opt/YAMon2/data/ and another in /tmp/www/data... in particular, make sure there is a copy in the latter location.
If no, stop and restart the script... if id does not appear again, check all of the paths and entries in your config.file, set _loglevel=-1 and restart the script again... send me your log file (via PM).
If users.js exists in /tmp/www/data, open the file and examine each line... looking for a missing } or ) at the end of the line. If one of the lines is bad, fix it (in both file locations) and restart the script.
I just reinstalled it from scratch and was having issues as above, getting stuck on loading devices, then hourly data once I disabled the symlink option. I resolved the loading hourly data loop by disabling organization of data, after which it loads right up.
First of all, thank you for your work in YAMon2 and your time helping people to use it too.
I have a R7000 (using BS build 25974). Got YAMon2 working despite some modifications that I had to do, since:
1. I had already an USB working in ext2 for use with Transmission, so it was already mounted to jffs. Só I understood that all scripts would have to be changed from /opt to /jffs. That´s what I did.
2. I downloaded "YAMon(2.1.0b).zip" from the first post from this thread, decompressing to /jffs/YAMon2.
Noticed that the files "yamon.startup” and "yamon.shutdown" are not present into Setup folder. I thought that maybe it was going to be created after running "/jffs/YAMon2/Setup/yamon2.sh" for the first time. But that was not the case.
So I have this files missing and I don´t understand what I´m doing wrong...
3. Since I use Transmission, and it eats a lot of my bandwidth, I would like to have the router itself listed on the reports.
Sorry if some of this is covered in the almost 80 pages. I went straight to the tutorial and got it working at least, but now I encountered the problems that I listed above.
Posted: Thu Jun 04, 2015 3:19 Post subject: Corrupted files after a power failure
On at least two occasions now, the USB drive on my router has been left in a bad state following a power failure.
I've found that users.js and the hourly usage file (and maybe the log) for that date become corrupted... they do not appear in the /opt/YAMon2/data directory and you get an `input/output` error if you try to `cat` or `rm` the files.
Also, if you try to open the reports, you will get a missing file error message.
First of all, thank you for your work in YAMon2 and your time helping people to use it too.
I have a R7000 (using BS build 25974). Got YAMon2 working despite some modifications that I had to do, since:
1. I had already an USB working in ext2 for use with Transmission, so it was already mounted to jffs. Só I understood that all scripts would have to be changed from /opt to /jffs. That´s what I did.
2. I downloaded "YAMon(2.1.0b).zip" from the first post from this thread, decompressing to /jffs/YAMon2.
Noticed that the files "yamon.startup” and "yamon.shutdown" are not present into Setup folder. I thought that maybe it was going to be created after running "/jffs/YAMon2/Setup/yamon2.sh" for the first time. But that was not the case.
So I have this files missing and I don´t understand what I´m doing wrong...
3. Since I use Transmission, and it eats a lot of my bandwidth, I would like to have the router itself listed on the reports.
Sorry if some of this is covered in the almost 80 pages. I went straight to the tutorial and got it working at least, but now I encountered the problems that I listed above.
Thank you for yout help on this!
Yes there was an issue in the zip file... somehow I forget to include the startup and shutdown scripts and the `default config.file` accidentally had the symlink option turned on.
I have corrected those errors and updated the zip file on the first page of this thread.
I am not familiar with Transmission. I suggest you get the script (and reports running) and set the _loglevel to 0 (or -1) and then PM the logs to me.
I just reinstalled it from scratch and was having issues as above, getting stuck on loading devices, then hourly data once I disabled the symlink option. I resolved the loading hourly data loop by disabling organization of data, after which it loads right up.
Something for you to check on, Al.
Crap! fixed. Thanks for pointing this out.
NB - if you do enable the symlink option in config.file you *must* update the path to data entry on the Settings tab in the reports.
Hey Al, since the update to the organized folders I no longer showed any updates on the web page. After midnight it no longer loaded the hourly file.
I checked and the hourly and mac was being created in the 2015/5 folder and updated regularly.
Checked my config to insure _organizeData=2 was set.
If I copied the mac and hourly from the 2015/5 folder to the top of data then it displayed.
Looks like it is not recursively looking for the current data.
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
Joined: 25 Dec 2010 Posts: 295 Location: Twin Cities, MN
Posted: Fri Jun 05, 2015 16:48 Post subject:
ddaniel51 wrote:
Hey Al, since the update to the organized folders I no longer showed any updates on the web page. After midnight it no longer loaded the hourly file.
I checked and the hourly and mac was being created in the 2015/5 folder and updated regularly.
Checked my config to insure _organizeData=2 was set.
If I copied the mac and hourly from the 2015/5 folder to the top of data then it displayed.
Looks like it is not recursively looking for the current data.
Dave
i have same issue, i told Al about it a few days ago..i think hes working on it.. _________________ NETGEAR R9000 | RT | 40134 NETGEAR R7800 | AP | 40134