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!

Hi. I currently don't have uiDivstats loaded. Is it possible to install the latest dev version (caching mode) option? I'm keen to give it a try. I saw the: uidivstats develop command in an earlier post, but I don't know how to use that. In other words, outside of the AMTM menuing system, I'm pretty blind.

Thanks,
Anton
 
Hi. I currently don't have uiDivstats loaded. Is it possible to install the latest dev version (caching mode) option? I'm keen to give it a try. I saw the: uidivstats develop command in an earlier post, but I don't know how to use that. In other words, outside of the AMTM menuing system, I'm pretty blind.

Thanks,
Anton
So before you go into "AMTM" using the AMTM command, you just put the uidivstats develop command there.
 
So before you go into "AMTM" using the AMTM command, you just put the uidivstats develop command there.
This is what happens when I do that.
UIDivstats develop.jpg
 
Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/uiDivStats/develop/uiDivStats.sh" -o "/jffs/scripts/uiDivStats" && chmod 0755 /jffs/scripts/uiDivStats && /jffs/scripts/uiDivStats install
Thank you, that worked perfectly!

I have installed and turned on the Cache switch. I haven't changed out or otherwise altered my USB drive.

Appreciated,
Anton
 
Same here.. I am thinking that the USB sticks I had, had a manufacturing defect ... thanks gain.
Yeah... very likely - I cannot emphasis that enough. USB sticks are not meant for these types of workloads.

So here's the UGREEN I've used 2x now $17 USD -> https://www.amazon.com/dp/B07D2BHVBD/?tag=snbforums-20

Any any good quality SSD ->
SS/SSD 250GB $60 -> https://www.amazon.com/dp/B07864WMK8/?tag=snbforums-20
Crucial 250GB $50 -> https://www.amazon.com/dp/B0781VSXBP/?tag=snbforums-20

It does not have to be new. I used an older 80GB Intel, one of the first SSD I owned.. been working flawlessly for 4+ years now. Good way to get yourself a SSD upgrade. ;) Peace. Stay Safe!
 
Hi,

First off, a big thanks for your efforts and excellent script(s)!

I have an issue with latest version of uiDivStats. Today I logged on to the router and started amtm and when entering j5 from the amtm main menu the below happened. When the process had hung I exited with Ctrl-C:

amtm 3.1.7 FW by thelonelycoder
RT-AC68U (armv7l) FW-384.17 @ 192.168.1.1
The Asuswrt-Merlin Terminal Menu

1 open Diversion v4.1.12

4 open YazFi v4.1.0

j5 open uiDivStats v2.1.0

ep manage Entware packages

j5
sw manage Swap file /mnt/usb-minne 2.0G

i show all available scripts or tools
u check for script updates

amtm options
e exit t theme r reset a about
_____________________________________________

Enter option Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Installing sqlite3-cli (3320100-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/sqlite3-cli_3320100-1_armv7-2.6. ipk
Installing libsqlite3 (3320100-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libsqlite3_3320100-1_armv7-2.6.i pk
Installing libedit (20191231-3.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libedit_20191231-3.1-1_armv7-2.6.ipk
Configuring libsqlite3.
Configuring libedit.
Configuring sqlite3-cli.
Installing procps-ng-pkill (3.3.15-5) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/procps-ng-pkill_3.3.15-5_armv7-2.6.ipk
Installing procps-ng (3.3.15-5) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/procps-ng_3.3.15-5_armv7-2.6.ipk
Configuring procps-ng.
Configuring procps-ng-pkill.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

uiDivStats: Database ready, starting services...

uiDivStats: New version of taildns.tar.gz downloaded

uiDivStats: Starting first run of stat generation...

/jffs/scripts/uiDivStats: line 1370: can't open /tmp/uidivstats.sql: no such file
/jffs/scripts/uiDivStats: line 1370: can't open /tmp/uidivstats.sql: no such file
^C

Note that i did not go into the amtm update menu, the update started automatically when I entered j5 from the amtm main menu. I then started uiDivStats which had now been updated to version 2.1.0. Just to be safe, I entered u to see if uiDivStats would report another version beeing available, but it said I was running the latest version. I then pressed 1 to generate stats and this happened:

Choose an option: 1

awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully

Press enter to continue...
The uiDivStats-tab was not populated with stats after this (and hadn't been for awhile hence my effort to trya nd fix it)). I then did a uf to force an update, just in case anything went wrong earlier (which is how I interpret the errors earlier), but it still said v2.1.0 was the latest and greatest. Tried again to force stats generation, but got the same error as above.

I then uninstalled uiDivStats through its own menu. I noticed that the folder uiDivStats.d was deleted from /jffs/addons, so it seemed it was uninstalled correctly. I then tried to install uiDivStats from amtm menu and got this:

Enter option j5
_____________________________________________

This installs uiDivStats - WebUI for Diversion statistics
on your router.

Author: Jack Yaz
https://www.snbforums.com/threads/uidivstats-webui-for-diversion-statistics.56393/
_____________________________________________

Continue? [1=Yes e=Exit] 1

uiDivStats: Welcome to uiDivStats v2.1.0, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: New version of taildns.tar.gz downloaded

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

Error: near line 1: index idx_dns_domains already exists
Error: near line 1: index idx_dns_time already exists
Error: near line 1: index idx_dns_clients already exists
uiDivStats: Database ready, starting services...

uiDivStats: Starting first run of stat generation...

awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully
amtm 3.1.7 FW by thelonelycoder
RT-AC68U (armv7l) FW-384.17 @ 192.168.1.1
The Asuswrt-Merlin Terminal Menu

1 open Diversion v4.1.12

4 open YazFi v4.1.0

j5 open uiDivStats v2.1.0

ep manage Entware packages

sw manage Swap file /mnt/usb-minne 2.0G

i show all available scripts or tools
u check for script updates

amtm options
e exit t theme r reset a about
_____________________________________________

uiDivStats installed

Getting from fwupdate.asuswrt-merlin.net
- Module uiDivStats.mod downloaded
_____________________________________________

Enter option
Opened up uiDivStats and entered 1 to generate stats, but got this same "Division by zero" as earlier. Uninstalled uiDivStats again and ran the install command from cli instead, and got this:

XXXX@RT-AC68U:/tmp/home/root# /usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/uiDivStats/develop/
"/jffs/scripts/uiDivStats" && chmod 0755 /jffs/scripts/uiDivStats && /jffs/scripts/uiDivStats install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 51683 100 51683 0 0 66687 0 --:--:-- --:--:-- --:--:-- 67914
uiDivStats: Welcome to uiDivStats v2.2.0, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: New version of taildns.tar.gz downloaded

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

Error: near line 1: index idx_dns_domains already exists
Error: near line 1: index idx_dns_time already exists
Error: near line 1: index idx_dns_clients already exists
uiDivStats: Database ready, starting services...

uiDivStats: Starting first run of stat generation...

awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully
Fired up amtm and it reported uiDivStats as installed, this time with version 2.2.0 (!). Started uiDivStats and pressed 1 to generate stats, but yet again I was greated with the "Division by zero" as per earlier. Tried u to update, but it said I had the latest version. Still no stats showing on the uiDivStats-tab

I'm kinda lost here. Am I doing something wrong? It used to work flawlessly. Any help appreciated.
 
Last edited:
Have you updated the Entware packages? On the main amtm menu, does 'u' show any updates available?
 
test

Hi,

First off, a big thanks for your efforts and excellent script(s)!

I have an issue with latest version of uiDivStats. Today I logged on to the router and started amtm and when entering j5 from the amtm main menu the below happened. When the process had hung I exited with Ctrl-C:

Code:
 amtm 3.1.7 FW             by thelonelycoder
 RT-AC68U (armv7l) FW-384.17 @ 192.168.1.1
    The Asuswrt-Merlin Terminal Menu

 1  open     Diversion                v4.1.12

 4  open     YazFi                     v4.1.0

 j5 open     uiDivStats                v2.1.0

 ep manage   Entware packages

j5
 sw manage   Swap file /mnt/usb-minne 2.0G

 i  show     all available scripts or tools
 u  check    for script updates

    amtm options
 e  exit      t  theme   r  reset   a  about
_____________________________________________

 Enter option  Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Installing sqlite3-cli (3320100-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/sqlite3-cli_3320100-1_armv7-2.6.                                                      ipk
Installing libsqlite3 (3320100-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libsqlite3_3320100-1_armv7-2.6.i                                                      pk
Installing libedit (20191231-3.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libedit_20191231-3.1-1_armv7-2.6.ipk
Configuring libsqlite3.
Configuring libedit.
Configuring sqlite3-cli.
Installing procps-ng-pkill (3.3.15-5) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/procps-ng-pkill_3.3.15-5_armv7-2.6.ipk
Installing procps-ng (3.3.15-5) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/procps-ng_3.3.15-5_armv7-2.6.ipk
Configuring procps-ng.
Configuring procps-ng-pkill.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

uiDivStats: Database ready, starting services...

uiDivStats: New version of taildns.tar.gz downloaded

uiDivStats: Starting first run of stat generation...

/jffs/scripts/uiDivStats: line 1370: can't open /tmp/uidivstats.sql: no such file
/jffs/scripts/uiDivStats: line 1370: can't open /tmp/uidivstats.sql: no such file
^C

Note that i did not go into the amtm update menu, the update started automatically when I entered j5 from the amtm main menu. I then started uiDivStats which had now been updated to version 2.1.0. Just to be safe, I entered u to see if uiDivStats would report another version beeing available, but it said I was running the latest version. I then pressed 1 to generate stats and this happened:

Code:
Choose an option:    1

awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully

Press enter to continue...
The uiDivStats-tab was not populated with stats after this (and hadn't been for awhile hence my effort to trya nd fix it)). I then did a uf to force an update, just in case anything went wrong earlier (which is how I interpret the errors earlier), but it still said v2.1.0 was the latest and greatest. Tried again to force stats generation, but got the same error as above.

I then uninstalled uiDivStats through its own menu. I noticed that the folder uiDivStats.d was deleted from /jffs/addons, so it seemed it was uninstalled correctly. I then tried to install uiDivStats from amtm menu and got this:

Code:
 Enter option  j5
_____________________________________________

 This installs uiDivStats - WebUI for Diversion statistics
 on your router.

 Author: Jack Yaz
 https://www.snbforums.com/threads/uidivstats-webui-for-diversion-statistics.56393/
_____________________________________________

 Continue? [1=Yes e=Exit] 1

uiDivStats: Welcome to uiDivStats v2.1.0, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: New version of taildns.tar.gz downloaded

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

Error: near line 1: index idx_dns_domains already exists
Error: near line 1: index idx_dns_time already exists
Error: near line 1: index idx_dns_clients already exists
uiDivStats: Database ready, starting services...

uiDivStats: Starting first run of stat generation...

awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully
 amtm 3.1.7 FW             by thelonelycoder
 RT-AC68U (armv7l) FW-384.17 @ 192.168.1.1
    The Asuswrt-Merlin Terminal Menu

 1  open     Diversion                v4.1.12

 4  open     YazFi                     v4.1.0

 j5 open     uiDivStats                v2.1.0

 ep manage   Entware packages

 sw manage   Swap file /mnt/usb-minne 2.0G

 i  show     all available scripts or tools
 u  check    for script updates

    amtm options
 e  exit      t  theme   r  reset   a  about
_____________________________________________

 uiDivStats installed

 Getting from fwupdate.asuswrt-merlin.net
 - Module uiDivStats.mod downloaded
_____________________________________________

 Enter option
Opened up uiDivStats and entered 1 to generate stats, but got this same "Division by zero" as earlier. Uninstalled uiDivStats again and ran the install command from cli instead, and got this:

Code:
XXXX@RT-AC68U:/tmp/home/root# /usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/uiDivStats/develop/
 "/jffs/scripts/uiDivStats" && chmod 0755 /jffs/scripts/uiDivStats && /jffs/scripts/uiDivStats install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 51683  100 51683    0     0  66687      0 --:--:-- --:--:-- --:--:-- 67914
uiDivStats: Welcome to uiDivStats v2.2.0, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: New version of taildns.tar.gz downloaded

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.4-1) installed in root is up to date.
Package sqlite3-cli (3320100-1) installed in root is up to date.
Package procps-ng-pkill (3.3.15-5) installed in root is up to date.
uiDivStats: Creating database table and enabling write-ahead logging...

uiDivStats: Creating database table indexes...

Error: near line 1: index idx_dns_domains already exists
Error: near line 1: index idx_dns_time already exists
Error: near line 1: index idx_dns_clients already exists
uiDivStats: Database ready, starting services...

uiDivStats: Starting first run of stat generation...

awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
awk: cmd. line:1: Division by zero
uiDivStats: Stats updated successfully
Fired up amtm and it reported uiDivStats as installed, this time with version 2.2.0 (!). Started uiDivStats and pressed 1 to generate stats, but yet again I was greated with the "Division by zero" as per earlier. Tried u to update, but it said I had the latest version. Still no stats showing on the uiDivStats-tab

I'm kinda lost here. Am I doing something wrong? It used to work flawlessly. Any help appreciated.
2.2.0 is the develop version which you installed when running the manual install command i posted recently.

division by 0 suggests stats aren't making it into the database. what does:
Code:
/opt/etc/init.d/S90taildns check
ps | grep taildns

show?
 
2.2.0 is the develop version which you installed when running the manual install command i posted recently.

division by 0 suggests stats aren't making it into the database. what does:
Code:
/opt/etc/init.d/S90taildns check
ps | grep taildns


Code:
XXXX@RT-AC68U:/tmp/home/root# /opt/etc/init.d/S90taildns check
 Checking taildns...              alive.
XXXX@RT-AC68U:/tmp/home/root# ps | grep taildns
18369 XXXX        4656 S    grep taildns
30924 XXXX        1420 S    {taildns} /bin/sh /opt/bin/taildns
30938 XXXX        1420 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/tai
30992 XXXX        1424 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/tai
XXXX@RT-AC68U:/tmp/home/root#
 
Depending on the actual time 'yesterday', it may have downloaded a few corrupted files (Entware has been down and just went 'live' again a little bit earlier today).

Try updating Entware again (the server is working properly now). :)
 
Depending on the actual time 'yesterday', it may have downloaded a few corrupted files (Entware has been down and just went 'live' again a little bit earlier today).

Try updating Entware again (the server is working properly now). :)
Yeah, I read something about that in some thread here, but id doesn't seem to recognize any new package updates:

Enter option _____________________________________________

Entware package options

1. Update and upgrade Entware packages
2. Show installed Scripts and Entware packages

Enter selection [1-2 e=Exit] 1
_____________________________________________

This updates and upgrades Entware packages
_____________________________________________

Continue? [1=Yes e=Exit] 1


Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
amtm 3.1.7 FW by thelonelycoder
RT-AC68U (armv7l) FW-384.17 @ 192.168.1.1
The Asuswrt-Merlin Terminal Menu

1 open Diversion v4.1.12

4 open YazFi v4.1.0

j5 open uiDivStats v2.2.0 <- v2.1.0

ep manage Entware packages

sw manage Swap file /mnt/usb-minne 2.0G

i show all available scripts or tools
u check for script updates

amtm options
e exit t theme r reset a about
_____________________________________________

Entware packages updated and upgraded
_____________________________________________

Enter option
Notice that amtm doesn't realize that the developer-version is newer than the offical release, but thats to be expected.
 
Code:
XXXX@RT-AC68U:/tmp/home/root# /opt/etc/init.d/S90taildns check
 Checking taildns...              alive.
XXXX@RT-AC68U:/tmp/home/root# ps | grep taildns
18369 XXXX        4656 S    grep taildns
30924 XXXX        1420 S    {taildns} /bin/sh /opt/bin/taildns
30938 XXXX        1420 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/tai
30992 XXXX        1424 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/tai
XXXX@RT-AC68U:/tmp/home/root#
hm that output is cut off for some reason, did it print like that on screen? there's a process missing so taildns isn't running correctly but without the full output i dont know why
 
hm that output is cut off for some reason, did it print like that on screen? there's a process missing so taildns isn't running correctly but without the full output i dont know why
Strange, if I widened my terminal window, more texted showed up. Thought putty would adjust to window size, always has done that before. Anyways:

Code:
XXXX@RT-AC68U:/tmp/home/root# ps | grep taildns
11821 XXXX      4656 S    grep taildns
30924 XXXX      1420 S    {taildns} /bin/sh /opt/bin/taildns
30938 XXXX      1420 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal
30991 XXXX      1452 S    {dnsmasqtotal.aw} /usr/bin/awk -f /jffs/addons/uiDivStats.d/taildns.d/dnsmasqtotal.awk
30992 XXXX      1424 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal
XXXX@RT-AC68U:/tmp/home/root#
 
Some Syslog-entries related to my latest adventures:

Jun 20 15:17:09 uiDivStats: Welcome to uiDivStats v2.1.0, a script by JackYaz
Jun 20 15:17:10 uiDivStats: Checking your router meets the requirements for uiDivStats
Jun 20 15:17:14 uiDivStats: New version of uidivstats_www.asp downloaded
Jun 20 15:17:14 uiDivStats: Mounting uiDivStats WebUI page as user2.asp
Jun 20 15:17:16 XXXX: Started taildns from .
Jun 20 15:17:16 uiDivStats: New version of taildns.tar.gz downloaded
Jun 20 15:17:20 uiDivStats: Creating database table and enabling write-ahead logging...
Jun 20 15:17:20 uiDivStats: Creating database table indexes...
Jun 20 15:17:20 uiDivStats: Database ready, starting services...
Jun 20 15:17:21 uiDivStats: Starting first run of stat generation...
Jun 20 17:18:38 uiDivStats: Removing uiDivStats...
Jun 20 17:18:45 uiDivStats: Uninstall completed
Jun 20 15:19:16 uiDivStats: Welcome to uiDivStats v2.2.0, a script by JackYaz
Jun 20 15:19:17 uiDivStats: Checking your router meets the requirements for uiDivStats
Jun 20 15:19:21 uiDivStats: New version of uidivstats_www.asp downloaded
Jun 20 15:19:21 uiDivStats: Mounting uiDivStats WebUI page as user2.asp
Jun 20 15:19:23 XXXX: Started taildns from .
Jun 20 15:19:23 uiDivStats: New version of taildns.tar.gz downloaded
Jun 20 15:19:27 uiDivStats: Creating database table and enabling write-ahead logging...
Jun 20 15:19:27 uiDivStats: Creating database table indexes...
Jun 20 15:19:27 uiDivStats: Database ready, starting services...
Jun 20 15:19:28 uiDivStats: Starting first run of stat generation...
Jun 20 17:19:38 uiDivStats: Stats updated successfully
Jun 20 17:20:02 Diversion: updated ads counter: 1,228,560 total, 26,713 this week, 2,298 new since last count
Jun 20 17:20:09 uiDivStats: Stats updated successfully
Jun 20 17:20:23 uiDivStats: No new version - latest is v2.2.0
 
Strange, if I widened my terminal window, more texted showed up. Thought putty would adjust to window size, always has done that before. Anyways:

Code:
XXXX@RT-AC68U:/tmp/home/root# ps | grep taildns
11821 XXXX      4656 S    grep taildns
30924 XXXX      1420 S    {taildns} /bin/sh /opt/bin/taildns
30938 XXXX      1420 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal
30991 XXXX      1452 S    {dnsmasqtotal.aw} /usr/bin/awk -f /jffs/addons/uiDivStats.d/taildns.d/dnsmasqtotal.awk
30992 XXXX      1424 S    {taildnstotal} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal
XXXX@RT-AC68U:/tmp/home/root#
Hm OK the process does seem to be running. What do you see if you run?:
Code:
tail -F /opt/var/log/dnsmasq.log /opt/var/log/dnsmasq.log3 | /jffs/addons/uiDivStats.d/taildns.d/dnsmasqtotal.awk
 
Hm OK the process does seem to be running. What do you see if you run?:
Code:
tail -F /opt/var/log/dnsmasq.log /opt/var/log/dnsmasq.log3 | /jffs/addons/uiDivStats.d/taildns.d/dnsmasqtotal.awk

This:
XXXX@RT-AC68U:/tmp/home/root# tail -F /opt/var/log/dnsmasq.log /opt/var/log/dnsmasq.log3 | /jffs/addons/uiDivStats.d/taildns.d/dnsmasqtotal.awk
tail: can't open '/opt/var/log/dnsmasq.log3': No such file or directory
1592679367,192.168.1.71,secure.gravatar.com,AAAA,allowed
1592679367,192.168.1.231,play.googleapis.com,A,allowed
1592679371,192.168.1.231,clients4.google.com,A,allowed
1592679384,192.168.1.231,i.instagram.com,A,allowed
1592679388,192.168.1.31,sb.scorecardresearch.com,A,blocked (blocking list)
^C
XXXX@RT-AC68U:/tmp/home/root#
 
Hold on! Now, I don't get an error when forcing a stat update (1 in uiDivStats menu). However, no stats are shown on the web-page. Time seemed to have fixed some parts of it...

Code:
Choose an option:    1

uiDivStats: Stats updated successfully

Press enter to continue...
EDIT: The "/bin/sh /jffs/scripts/uiDivStats querylog" entries are not shown under htop anymore...
 

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!
Top