What's new

uiDivStats uiDivStats - WebUI for Diversion statistics

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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:
Screenshots:

ec022f2e1c.png
 
Last edited:
Currently restricted to text stats and 1 graph, I'm looking for suggestions of graphs people would like to see!
 
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? :)
 
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
 

Attachments

  • 92B7470A-640F-44EE-9CC3-21BD87607306.jpeg
    92B7470A-640F-44EE-9CC3-21BD87607306.jpeg
    54.8 KB · Views: 3,260
Confirmed working on AX88U 384.11b

Thank you.

Etienne
 
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.
 
Nice Jack, looking good! Thanks!

...what next, webui amtm? :D J/K don't do it!
 
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!
 
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
 
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:
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]

Screenshot-at-2019-05-01-21-06-34.png
 
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]
 
@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

  • Screen Shot 2019-05-02 at 7.24.38 AM.png
    Screen Shot 2019-05-02 at 7.24.38 AM.png
    284.6 KB · Views: 1,486
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? :/
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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

Staff online

Top