What's new

uiDivStats - WebUI for Diversion statistics

Jack Yaz

Part of the Furniture
v2.2.2
Updated 2020-09-14

A graphical representation of domain blocking performed by Diversion.

uiDivStats is free to use under the GNU General Public License version 3 (GPL 3.0).

This project is hosted on GitHub

Love the script and want to support future development? Any and all donations gratefully received!
PayPal donation
Buy me a coffee

Supported firmware versions
You must be running firmware Merlin 384.15/384.13_4 or Fork 43E5 (or later) Asuswrt-Merlin

Installation
Using your preferred SSH client/terminal, copy and paste the following command, then press Enter:
Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/uiDivStats/master/uiDivStats.sh" -o "/jffs/scripts/uiDivStats" && chmod 0755 /jffs/scripts/uiDivStats && /jffs/scripts/uiDivStats install
Usage
To launch the uiDivStats menu after installation, use:
Code:
uiDivStats
If this does not work, you will need to use the full path:
Code:
/jffs/scripts/uiDivStats
Updating
Launch uiDivStats and select option u
 
Last edited:

Jack Yaz

Part of the Furniture
Currently restricted to text stats and 1 graph, I'm looking for suggestions of graphs people would like to see!
 

L&LD

Part of the Furniture
Great that this is finally public! :)

I've been using this for at least a couple of versions now and all have been rock solid for me.

I have it installed on a few RT-AC68U's, RT-AC86U's, RT-AC3100 with a mix of firmware, from RMerlin 384.10_2, 384.11 Alpha 1-4 and the latest 384.11 Beta 1 too.

Make sure to at least enable weekly stats in Diversion.

Using this along with all the other Jack Yaz scripts with no issues at all.

Can't wait for it to be included in amtm too.

Is Skynet next for the Jack Yaz treatment? :)
 

Evictoria

Occasional Visitor
Confirmed working on AX88U 384.11b

Thank you.

Etienne
 

Jack Yaz

Part of the Furniture
Hi
congratulations for the job, but the display is a bit oversized on my tablet and also on windows. :)
My router is ac86u with last rmerlin stable firmware.

Thanks
I;ve shrunk things a little in the latest version
 

QuikSilver

Very Senior Member
Graph is graded in 100s on the y axis - I can try to make that dynamic
The left side numbers dont really matter much since I can read the top number on the bar itself. More visually annoying than anything else.
 

joe scian

Senior Member
Hi Jack
got these 2 messages before complted successfully message.

"/tmp/gnuplot.script" line 13: warning: Too many axis ticks requested (>3e+03)
"/tmp/gnuplot.script" line 13: warning: Too many axis ticks requested (>3e+03)
uiDivStats: Diversion statistic generation completed successfully!
 

Jack Yaz

Part of the Furniture
Hi Jack
got these 2 messages before complted successfully message.

"/tmp/gnuplot.script" line 13: warning: Too many axis ticks requested (>3e+03)
"/tmp/gnuplot.script" line 13: warning: Too many axis ticks requested (>3e+03)
uiDivStats: Diversion statistic generation completed successfully!
What does the "top blocks" bit look like in the text output? It suggests you've had so many blocks for one domain that the axis scale can't cope
 

joe scian

Senior Member
What does the "top blocks" bit look like in the text output? It suggests you've had so many blocks for one domain that the axis scale can't cope
279,646 blocked - max
107 blocked - min
 
Last edited:

Butterfly Bones

Very Senior Member
Noob question: where do you enable weekly stats in Diversion? I've looked everywhere :confused:

According to my settings, they seem to be on.
Look at the (c) communication line, then choose (c) and configure it.
Code:
 Communication settings:
 1. Diversion update notification off
 2. Diversion stats stats:file,body,save   <---- THIS ONE
 3. Diversion backup off
 4. Firmware update notification off
 5. Edit email settings, send testmail
 Enter selection [1-5 e=Exit]
 

Butterfly Bones

Very Senior Member
Nope #1 then #1 again should show weekly stats enabled.
Code:
Router stats info:
 Set weekly stats to on or off.
 Edit settings or compile current stats.
 1. Weekly stats settings
 2. Compile current stats report
 3. Top 'x' setting  Top 10 hosts for 10 clients
 4. Filter local client names  off
 5. Show local clients list
 Select what to do: [1-5 e=Exit] 1
____________________________________________________
 Weekly stats settings:
 1. Disable weekly stats <---See it says 1 to disable? Because I used 1 to enable first
 2. Change settings
 Select what to do [1-2 e=Exit]
 

#TY

Senior Member
@Jack Yaz Works great on ASUS RT-AC5300. Thank you!

The only thing I noticed was on the attached graph. The left side is all garbled. This is on the latest version of Safari on macOS Mojave 10.14.4 (in case it helps).
 

Attachments

Jack Yaz

Part of the Furniture
Got it @Butterfly Bones ! Thank you! I also enabled the update notifications :)
The installer should have provided you the steps
Code:
if [ "$weeklyStats" != "on" ]; then
            Print_Output "true" "Diversion weekly stats not enabled!" "$ERR"
            Print_Output "true" "Open Diversion, use option c and then enable using 2,1,1" ""
            CHECKSFAILED="true"
        fi
did that not appear? :/
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top