L&LD
Part of the Furniture
@mafiaboy01, how good are you at script coding? I wouldn't even know where to begin.
if [ "$(uname -o)" = "ASUSWRT-Merlin" ] && [ "$(nvram get buildno | tr -d '.')" -ge "38400" ]; then
Use csv files for ChartJS data - reduces generation time of stats
Revert to single cron job as a result of the above improvement
General improvements to WebUI page
Automatically purge data older than 30 days to prevent database file size growing too large
I just did, but now I can't open the graphs in the UI...is it populating data?Thank you! Updated, no issues.
it runs every 5 minutes, but the generation of the csvs is dead quick, there should only be a very small window in which the underlying data is unavailableI just did, but now I can't open the graphs in the UI...is it populating data?
logged out, logged back in and have graphs again...
Switch to single tar archive for shared-jy resources
rm -rf /www/user/shared-jy && rm -rf /jffs/addons/shared-jy
I too run netdata, several devices stream to a central Linux box, which then pumps the data into grafana for long term retention@Jack Yaz - Thank you. Also a Thank you to everyone else here and especially @RMerlin. Long time reader of the forums (years and years) but decided to finally register.
connmon v2.3.1 definitely seems to have improved on the CPU utilization in terms of how much and for how long.
with the prior version to v2.3.1, I was seeing every 5 mins 100 % overall CPU utilization (I don't remember the duration - but it seemed more then 8 seconds). Because of that I installed netdata onto the AC68u itself and dug in to find out what was causing the spikes - isolated it to cron jobs -- and when I removed connmon the spikes stopped. I left connmon uninstalled and tuned netdata and left that running as I liked the amount of detail I got. Overall netdata was taking up 1-3 % cpu overall while running on the AC68U while giving a great amount of detail.
With the latest connmon release I decided let me install it again and see if it improved (it has as per above and below).
Currently running on an RT-AC68U f/w 384.15 with a 4GB USB 2.0 flash drive attached. The following are active via AMTM currently:
- scribe, nsrum, connmon, scMerlin, spdMerlin, uiScribe.
- entware (additional packages): netdata
CPU with above running is consistently at 1-7 percent utilization (totally great as far as I am concerned). Spikes in CPU utilization occur when cron jobs run.
- connmon approx every 5 mins spikes to approx overall 70% utilization (as expressed when overall cores provide 100 % total) for a duration of 8 seconds each time.
- spdMerlin at every 7 and 37 each hour causes overall CPU spike 80% for 30 seconds.
Many other stats (as captured by netdata which I think btw is great). I've actually gone ahead and installed netdata onto a Raspberry Pi 3b and collect stats to it -- while leaving the AC68u to just stream out it's data collected to the Raspberry Pi.
I'll share a post down the road on my netdata install via entware opkg command and the changes I made to the configuration files, etc..
I too run netdata, several devices stream to a central Linux box, which then pumps the data into grafana for long term retention
Jack made some changes to most of his scripts that required extra steps on updates, did you do those?Okay, I tried uninstalling from amtm again.
Then I just did entered
/tmp/home/root# /usr/sbin/curl --retry 3 "https://raw.
githubusercontent.com/jackyaz/connmon/master/connmon.sh" -o "/jffs/scripts/connm
on" && chmod 0755 /jffs/scripts/connmon && /jffs/scripts/connmon install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32092 100 32092 0 0 164k 0 --:--:-- --:--:-- --:--:-- 175k
connmon: Welcome to connmon v2.3.1, a script by JackYaz
connmon: Checking your router meets the requirements for connmon
connmon: Installing required packages from Entware
Downloading http://bin.entware.net/aarch64-k3.10/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package sqlite3-cli (3300100-1) installed in root is up to date.
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
connmon: New version of connmonstats_www.asp downloaded
connmon: Mounting connmon WebUI page as user3.asp
connmon: 30 second ping test to 8.8.8.8 starting...
connmon: Test results - Ping 9.952 ms - Jitter - 0.978 ms - Line Quality 100.000 %
I now see an Addons section with graphs in the router webui. Is that normal?
Okay, I tried uninstalling from amtm again.
Then I just did entered
/tmp/home/root# /usr/sbin/curl --retry 3 "https://raw.
githubusercontent.com/jackyaz/connmon/master/connmon.sh" -o "/jffs/scripts/connm
on" && chmod 0755 /jffs/scripts/connmon && /jffs/scripts/connmon install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32092 100 32092 0 0 164k 0 --:--:-- --:--:-- --:--:-- 175k
connmon: Welcome to connmon v2.3.1, a script by JackYaz
connmon: Checking your router meets the requirements for connmon
connmon: Installing required packages from Entware
Downloading http://bin.entware.net/aarch64-k3.10/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package sqlite3-cli (3300100-1) installed in root is up to date.
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
connmon: New version of connmonstats_www.asp downloaded
connmon: Mounting connmon WebUI page as user3.asp
connmon: 30 second ping test to 8.8.8.8 starting...
connmon: Test results - Ping 9.952 ms - Jitter - 0.978 ms - Line Quality 100.000 %
I now see an Addons section with graphs in the router webui. Is that normal?
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
/jffs/scripts/connmon: line 1050: can't open /jffs/addons/connmon.d/connmonstats_www.asp: no such file
v2.3.1 is now available
Changelog:
Code:Switch to single tar archive for shared-jy resources
With this update, if you are running my other scripts (connmon, ntpmerlin, spdmerlin, uiDivStats, modmon), you MUST update these as well. Ignore any error messages during updates after the first script (it will mention too many levels of symbolic links), and let the update complete.
Once you have updated all of the scripts, run
then open any of the scripts mentioned above and run 1 further update.Code:rm -rf /www/user/shared-jy && rm -rf /jffs/addons/shared-jy
This will hopefully be the last time any of this messing around is needed - I'm switching to a single archive for all shared-jy resources to ease the pain of any new files that are needed in the future. Please accept my apologies for the inconvenience!
Quality is determined by any packet loss, e.g. 100 minus the packet loss reported during the 30s test:@Jack_Yaz
I'm running 2.3.1 on my AX88U with Merlin 384.15
If you look at the attached, my highest ping is at 18:40 last evening; however, the quality graph shows 100%. Conversely, my quality dips to 94% at roughly 23:20; however, my pings are nominal at that time. Could you shed some light on how your script determines line quality ? To my way of thinking, what I am seeing is backwards.
WView attachment 21888
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!