1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

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!

uiDivStats - WebUI for Diversion statistics

Discussion in 'Asuswrt-Merlin' started by Jack Yaz, May 1, 2019.

  1. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    v1.3.2
    Updated 2020-03-08
    See statistics and graphs for Diversion Ad-blocking on your router.

    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

    Supported Models
    Models
    All modes supported by Asuswrt-Merlin. Models confirmed to work are below:
    • RT-AC86U
    Firmware versions
    You must be running firmware no older than:
    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: Mar 8, 2020
  2. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    Screenshots:

    [​IMG]
     
    Last edited: Dec 28, 2019
    saccleo, a5m and Vexira like this.
  3. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    Currently restricted to text stats and 1 graph, I'm looking for suggestions of graphs people would like to see!
     
  4. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    11,436
    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? :)
     
    martinr, QuikSilver and Jack Yaz like this.
  5. StefanoN

    StefanoN Regular Contributor

    Joined:
    Dec 31, 2017
    Messages:
    57
    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
     

    Attached Files:

    Jack Yaz likes this.
  6. Evictoria

    Evictoria Occasional Visitor

    Joined:
    Oct 10, 2016
    Messages:
    11
    Confirmed working on AX88U 384.11b

    Thank you.

    Etienne
     
    Jack Yaz likes this.
  7. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    I;ve shrunk things a little in the latest version
     
    L&LD and QuikSilver like this.
  8. QuikSilver

    QuikSilver Senior Member

    Joined:
    Jan 30, 2019
    Messages:
    431
    Location:
    BFE
    Mine is squeezed a good bit....:eek: Would guess those are hits from the echo devices, o_O:)
    https://imgur.com/a/laqVWvA
     
  9. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    Graph is graded in 100s on the y axis - I can try to make that dynamic
     
  10. QuikSilver

    QuikSilver Senior Member

    Joined:
    Jan 30, 2019
    Messages:
    431
    Location:
    BFE
    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.
     
  11. truglodite

    truglodite Regular Contributor

    Joined:
    Jun 24, 2017
    Messages:
    150
    Nice Jack, looking good! Thanks!

    ...what next, webui amtm? :D J/K don't do it!
     
    QuikSilver likes this.
  12. joe scian

    joe scian Senior Member

    Joined:
    Apr 22, 2018
    Messages:
    353
    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!
     
  13. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    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
     
  14. joe scian

    joe scian Senior Member

    Joined:
    Apr 22, 2018
    Messages:
    353
    279,646 blocked - max
    107 blocked - min
     
    Last edited: May 2, 2019
  15. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    That'd do it - I'll work on a dynamic scale
     
    L&LD, QuikSilver and joe scian like this.
  16. Butterfly Bones

    Butterfly Bones Very Senior Member

    Joined:
    Apr 10, 2017
    Messages:
    1,272
    Location:
    USA
    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] 
    [​IMG]
     
    razvanu, Makaveli and #TY like this.
  17. Butterfly Bones

    Butterfly Bones Very Senior Member

    Joined:
    Apr 10, 2017
    Messages:
    1,272
    Location:
    USA
    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] 
    
     
    razvanu and #TY like this.
  18. #TY

    #TY Senior Member

    Joined:
    Mar 27, 2019
    Messages:
    283
    Got it @Butterfly Bones ! Thank you! I also enabled the update notifications :)
     
    Butterfly Bones likes this.
  19. #TY

    #TY Senior Member

    Joined:
    Mar 27, 2019
    Messages:
    283
    @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).
     

    Attached Files:

  20. Jack Yaz

    Jack Yaz Part of the Furniture

    Joined:
    Apr 20, 2017
    Messages:
    2,940
    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? :/