The Daily Usage Report tab is only displaying the information for a single hour. I tracked down the bug - there is an extraneous line in the yamon4.0.js::Totals() routine that causes it to except out of the loaded hourly .js file and not execute any of the subsequent logic - in bold:
var mem=(arr.memory).replace(/[{}]/g,"").split(',')
hourly_totals.memory[hr]=mem
$("#sp-freeMem").text(mem[0])
disk_utilization=arr.disk_utilization
drawSummaryGauges(arr.disk_utilization, arr.memory )
$('#uptime').text(sec2text(arr.uptime))
The bolded line is missing a "var". The variable isn't used anyway (uses arr.disk_utilizaiton directly instead in the line below it), so I assume it's extraneous. If I remove the line then all the hours are properly rendered.
Bugger... missed that . I'd fixed the issue in the `dev` version of the JS and forgot to post the change to `current`.
Check again, it should be fixed now (you might to reload the reports with a <ctrl>+F5 to force a refresh of the JS files).
Thanks for not only reporting the issue but also finding the resolution. It makes my life much simpler. FWIW, the JS code is also posted to the YAMon GitHub repository (https://github.com/al-caughey/YAMon-v4) so you can also fix the issues (in the code base at least... I will still have to sync to the server)
Thanks to everyone for your support & assistance. Stay safe.
Al _________________ Thanks to everyone for supporting YAMon!
If you use and like YAMon and have not done so recently, please consider making a donation - thanks!
YAMon GitHub Repository
Thanks Al! Btw, while debugging that I ran into another issue - I wanted to pause the cron jobs to keep the .js from updating while I was stepping through the javascript code but pause.sh wasn't successfully commenting out the YAMon4 jobs. Here's the issue in start-stop.sh:
Also, on my openwrt installation crond doesn't always pick up the changes. I had to manually create the cron.update file to do so. (cron.update contains list of users with updated cron files, so in this case just "root").
Thanks Al! Btw, while debugging that I ran into another issue - I wanted to pause the cron jobs to keep the .js from updating while I was stepping through the javascript code but pause.sh wasn't successfully commenting out the YAMon4 jobs. Here's the issue in start-stop.sh:
Also, on my openwrt installation crond doesn't always pick up the changes. I had to manually create the cron.update file to do so. (cron.update contains list of users with updated cron files, so in this case just "root").
Double Bugger.
WRT to picking up the changes, are you perhaps suggesting that in ResetCron, we should be creating crond.update?... that would be easy enough to do _________________ Thanks to everyone for supporting YAMon!
If you use and like YAMon and have not done so recently, please consider making a donation - thanks!
YAMon GitHub Repository
https://usage-monitoring.com/ is not working, realized in the morning when suddenly reports stopped working.
Sorry - but it appears that the HTTP side of my website has gone down... I can get into the site via WinSCP or through my ISPs web interface and all of the content is still there. It looks like my ISP is having troubles at their end (e.g., their online support chat is not working as well).
YAMon should (AFAIK) still be collecting all of your data. You just won't be able to access the reports until my ISP gets their sh*t together.
Sorry for the inconvenience.
Al _________________ Thanks to everyone for supporting YAMon!
If you use and like YAMon and have not done so recently, please consider making a donation - thanks!
YAMon GitHub Repository
Long time DD-WRT aficionado, newbie YAMon user (please be gentle).
I've tried (i.e. thought I needed) Zabbix, SNMP, various RFlow tools like Netflow Analyzer, but what I really needed was YAMon... thank you for the pride and passion you have so obviously poured into this project.
I just installed v4.0.7 on a Netgear R8500 running kongs last version 40270M ='( and am having an issue I don't see in any previous post on the board, so my first post ever in 7 years as a DD-WRT member is for YAMon :0)
I'm seeing GetTraffic() errors in the log file. The first two (and only two) successful GetTraffic() calls I see in the logs look like this;
While the entry says it's coming from update-reports.sh line 130, it's actually the sourced /includes/traffic.sh line 130... the relevant line in that script would be;
Code:
total_down=$(( $total_down + ${do:-0} ))
but intuition tells me that the GetTraffic() call should only be returning two numbers representing total_up and total_down bytes for the corresponding interval.
Once that error occurs the remaining raw-traffic files are all empty.
Have you (has anyone) seen this before? Can anyone point me in the right direction to continue troubleshooting? Let me know what further information/data you may need, be glad to send setup and validation logs.
Quick update: I stopped all cron jobs, deleted all files created post-installation (data, directories, etc.), rebooted the router, and didn't touch anything for 24 hours (as I saw suggested here before)... voila'
Long time DD-WRT aficionado, newbie YAMon user (please be gentle).
I've tried (i.e. thought I needed) Zabbix, SNMP, various RFlow tools like Netflow Analyzer, but what I really needed was YAMon... thank you for the pride and passion you have so obviously poured into this project.
I just installed v4.0.7 on a Netgear R8500 running kongs last version 40270M ='( and am having an issue I don't see in any previous post on the board, so my first post ever in 7 years as a DD-WRT member is for YAMon :0)
I'm seeing GetTraffic() errors in the log file. The first two (and only two) successful GetTraffic() calls I see in the logs look like this;
While the entry says it's coming from update-reports.sh line 130, it's actually the sourced /includes/traffic.sh line 130... the relevant line in that script would be;
Code:
total_down=$(( $total_down + ${do:-0} ))
but intuition tells me that the GetTraffic() call should only be returning two numbers representing total_up and total_down bytes for the corresponding interval.
Once that error occurs the remaining raw-traffic files are all empty.
Have you (has anyone) seen this before? Can anyone point me in the right direction to continue troubleshooting? Let me know what further information/data you may need, be glad to send setup and validation logs.
Thx
I'm getting something similar. I updated a few weeks ago and noticed that my data files were empty. I ran the install again yesterday and got hourly traffic for one hour, then it stops again. I'm seeing the same error you have:
Did you read the post just above yours? _________________ 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
I did. "Delete all files and wait" seemed vague and extreme - I was hoping for an easier solution.
FWIW - I did end up deleting the entire Yamon4 directory and reinstalling. I still had the same issue. I ended up deleting the /tmp/yamon/ directory and that appears to have solved it. I'm hoping I can just put my db key back in the config file and all will be back to normal.
Why does the Devices tab turn gray and unresponsive? _________________ 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
Heya, I just installed YAMonv4 and so far it looks awesome
However there have been two things that are causing me some issues,
First when I reboot the router it doesn't seem to start YAMon. The startup script is there but when I go to the reports page it's just a blank screen. If I ssh in and start /opt/YAMon4/start.sh then everything seems to work normally. I looked at the tmp directories and nothing for YAMon is there, so I didn't think that the troubleshooting on that page that requires them being there would help.
Secondly, every time I open the page it shows a prompt to enter the monthly data cap. Additionally it asks if I want to participate in a poll and asks for a donation. I don't think this is supposed to show every time I refresh.
The data usage also seems to be off by 5 ish gb a day, upnp and SFE are disabled