What's new

[Beta 3] Vnstat on Merlin - UI, CLI and email - data use monitoring - now with data limit monitoring

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

Status
Not open for further replies.
This is going to sound trivial, but is there any way to get the UI to show the date in the UK format. I.E. 7/3/21 (7th March 21) instead of the US method 3/7/21.

Thanks for your hard work.
 
This is going to sound trivial, but is there any way to get the UI to show the date in the UK format. I.E. 7/3/21 (7th March 21) instead of the US method 3/7/21.

Thanks for your hard work.
Explained a few posts above yours.
 
This is going to sound trivial, but is there any way to get the UI to show the date in the UK format. I.E. 7/3/21 (7th March 21) instead of the US method 3/7/21.

Thanks for your hard work.

DayFormat "%d/%m/%y"
MonthFormat "%b '%y"
TopFormat "%d/%m/%y"
 
Thank you. I guess I missed that!
 
DayFormat "%d/%m/%y"
MonthFormat "%b '%y"
TopFormat "%d/%m/%y"
I edited vnstat.conf according to this ... but I am still getting the old date format after hard refreshing.

Something more to edit?
 

Attachments

  • vnstats time format.png
    vnstats time format.png
    327.3 KB · Views: 101
  • vnstats conf file.png
    vnstats conf file.png
    477.6 KB · Views: 124
Ha! I was just about to post the exact same, screen shots too!

I have tried rebooting the router and control-F5
 
Have you tried to manually generate new images/generate stats?
 
Yes I have. Interesting, the CLI does show the correct UK format. But the GUI still shows the US format.
 
I edited vnstat.conf according to this ... but I am still getting the old date format after hard refreshing.

Something more to edit?
According to MAN DATE, the format is %d-%b-%Y for dd-MMM-YYYY.

And once you've edited the conf file, do a "1" update and then a hard refresh.

For clarity, new installs will include the MMM (month) in the date format. We're a supportive bunch!

EDIT: just tested and it works in the UI (%d-%b-%Y).

date-format.PNG
 
Last edited:
According to MAN DATE, the format is %d-%b-%Y for dd-MMM-YYYY.

And once you've edited the conf file, do a "1" update and then a hard refresh.

For clarity, new installs will include the MMM (month) in the date format. We're a supportive bunch!

EDIT: just tested and it works in the UI (%d-%b-%Y).

View attachment 31693
Thank you, It worked fine.

Editing ...
# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat "%d-%b-%Y"
MonthFormat "%b '%y"
TopFormat "%d-%b-%Y"

I also edited
# title timestamp format
HeaderFormat "%d-%b-%Y %H:%M"
In order to get the yellow date and time according to that.
 
Strange. Try a reboot. It's working perfectly here
Ah. I added the lines:

# title timestamp format
HeaderFormat "%d-%b-%Y %H:%M"

Now all is well. Thanks figorr for the suggestion.

Thanks all.
 
I’m new to command lines, but how can I make the log save to the USB drive instead of memory on the router? I only have 1 USB drive connected.
 
Last edited:
Hello there. What is this error and how can I fix it? Tell me please.

admin@RT-AX88U-0ВС0:/tmp/home/root# /jffs/scripts/dn-vnstat generateimages
dn-vnstat: vnstati updating stats for UI

vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
 
I’m new to command lines, but how can I make the log save to the USB drive instead of memory on the router? I only have 1 USB drive connected.
The default location for the database files is /opt/var/lib/vnstat/ which is actually symlinked to /mnt/your_usb_drive/entware/var/lib/vnstat/. So the dbs are on your usb drive already.

Weird Numbers, any way to "reset" them?
Hmmm, never saw this in any of the testing, except a "doubling" on one import on one test. I'd suggest backing up your db: vnstat --exportdb > /path/to/vnstat-export-db.txt before taking any additional steps.

Can you post or PM what was happening around the time of this discovery and describe your hardware/firmware version, please.

Before you reset, can you run /jffs/scripts/dn-vnstat generatestats and then PM the output of /tmp/vnstat.txt please, and run vnstat -h (hours) and PM me that too, please?

Then you can reset the database by running vnstat -r (or vnstat --reset).

Hello there. What is this error and how can I fix it? Tell me please.

admin@RT-AX88U-0ВС0:/tmp/home/root# /jffs/scripts/dn-vnstat generateimages
dn-vnstat: vnstati updating stats for UI

vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
This looks like a missing application/dependency (for the imagemagick component). Can you describe the device and firmware version please. You may also try to re-run the CLI full install command (it won't delete any data files) to see if that helps.
 
This looks like a missing application/dependency (for the imagemagick component). Can you describe the device and firmware version please. You may also try to re-run the CLI full install command (it won't delete any data files) to see if that helps.

Device ASUS RT-AX88U firmware Asus Merlin 386.1_2. Re-installing the CLI did not give a result. Deleted opkg remove imagemagick --autoremove, opkg remove vnstat --autoremove, opkg remove vnstati --autoremove rebooted the device and installed it in a new way did not help. Another error when generating statistics via amtm in the screenshot.
convert: UnableToLoadModule '/tmp/mnt/app/entware/lib/ImageMagick-7.0.9/modules-Q8/coders/png.la': file not found @ error/module.c/OpenModule/1287.
convert: NoEncodeDelegateForThisImageFormat `LABEL' @ error/constitute.c/WriteImage/1222.
 

Attachments

  • 1.png
    1.png
    161 KB · Views: 97
Hmmm, never saw this in any of the testing, except a "doubling" on one import on one test. I'd suggest backing up your db: vnstat --exportdb > /path/to/vnstat-export-db.txt before taking any additional steps.

Can you post or PM what was happening around the time of this discovery and describe your hardware/firmware version, please.

Before you reset, can you run /jffs/scripts/dn-vnstat generatestats and then PM the output of /tmp/vnstat.txt please, and run vnstat -h (hours) and PM me that too, please?

Then you can reset the database by running vnstat -r (or vnstat --reset).

See, posts 24, 25 & 34 For issue I had and Jack Yaz response to a log I sent him. Other than reinstalling back then (I think 3/3 or 3/4), when I upgraded to AMTM, there was an upgrade in amtm to 0.9.4 even though I was already on 0.9.4, but I said update anyhow (through amtm).

I will attempt to get the info you asked for and get back to you through posts here or PM (depending on how long the data is when I run it --I'll try now, hopefully I can get it).

Edit: RT-AC86U 386.1_2
 
@dev_null
vnstat-export-db.txt
Code:
version;3
active;1
interface;eth0
nick;eth0
created;1614571993
updated;1615213801
totalrx;17592186380733
totaltx;19590
currx;182924857344
curtx;7335038976
totalrxk;169
totaltxk;155
btime;1615065263
d;0;1615179633;12801;808;243;125;1
d;1;1615093223;20461;1983;533;388;1
d;2;1615006854;160354;5325;800;463;1
d;3;1614920444;36142;1843;230;333;1
d;4;1614834035;20613;890;137;237;1
d;5;1614747639;19479;1437;828;930;1
d;6;1614661226;37752;1702;1019;358;1
d;7;1614574816;17592186072344;5570;624;490;1
d;8;1614571993;782;28;875;927;1
d;9;0;0;0;0;0;0
d;10;0;0;0;0;0;0
d;11;0;0;0;0;0;0
d;12;0;0;0;0;0;0
d;13;0;0;0;0;0;0
d;14;0;0;0;0;0;0
d;15;0;0;0;0;0;0
d;16;0;0;0;0;0;0
d;17;0;0;0;0;0;0
d;18;0;0;0;0;0;0
d;19;0;0;0;0;0;0
d;20;0;0;0;0;0;0
d;21;0;0;0;0;0;0
d;22;0;0;0;0;0;0
d;23;0;0;0;0;0;0
d;24;0;0;0;0;0;0
d;25;0;0;0;0;0;0
d;26;0;0;0;0;0;0
d;27;0;0;0;0;0;0
d;28;0;0;0;0;0;0
d;29;0;0;0;0;0;0
m;0;1614574816;17592186379950;19561;318;252;1
m;1;1614571993;782;28;875;927;1
m;2;0;0;0;0;0;0
m;3;0;0;0;0;0;0
m;4;0;0;0;0;0;0
m;5;0;0;0;0;0;0
m;6;0;0;0;0;0;0
m;7;0;0;0;0;0;0
m;8;0;0;0;0;0;0
m;9;0;0;0;0;0;0
m;10;0;0;0;0;0;0
m;11;0;0;0;0;0;0
t;0;1614574816;17592186072344;5570;624;490;1
t;1;1615006854;160354;5325;800;463;1
t;2;1614661226;37752;1702;1019;358;1
t;3;1614920444;36142;1843;230;333;1
t;4;1615093223;20461;1983;533;388;1
t;5;1614834035;20613;890;137;237;1
t;6;1614747639;19479;1437;828;930;1
t;7;1614571993;782;28;875;927;1
t;8;0;0;0;0;0;0
t;9;0;0;0;0;0;0
h;0;1615183176;1863391;72191
h;1;1615186779;1982458;42982
h;2;1615190382;1437954;37565
h;3;1615193985;1495367;60841
h;4;1615197588;1554492;363099
h;5;1615201191;1957976;121323
h;6;1615204794;1137085;49066
h;7;1615208397;584680;29334
h;8;1615211940;842836;34210
h;9;1615213801;252228;16906
h;10;1615132795;835619;283217
h;11;1615136398;857037;224615
h;12;1615139941;769138;264105
h;13;1615143543;690573;136226
h;14;1615147146;656915;28251
h;15;1615150749;539347;26595
h;16;1615154352;702181;29449
h;17;1615157955;738322;30812
h;18;1615161558;529037;30314
h;19;1615165161;1782337;69243
h;20;1615168764;694971;37523
h;21;1615172367;566828;28673
h;22;1615175970;608533;32237
h;23;1615179573;671085;35772


vnstat.txt
Code:
vnstats as of:
Mon Mar  8 09:32:04 EST 2021
eth0  /  monthly

    month        rx      |     tx      |    total
-------------------------+-------------+------------
   Feb '21     782.85 MB |    28.91 MB |   811.76 MB
   Mar '21   16,777,216.00 TB |    19.10 GB | 16,777,216.00 TB
-------------------------+-------------+------------
estimated  68,382,976.00 TB |    77.86 GB | 68,382,976.00 TB

eth0  /  weekly

                   rx      |     tx      |    total
---------------------------+-------------+------------
last 7 days     300.40 GB |    13.66 GB |   314.06 GB
   last week   16,777,216.00 TB |    18.31 GB | 16,777,216.00 TB
current week      12.50 GB |   808.16 MB |    13.29 GB
---------------------------+-------------+------------
   estimated     233.35 GB |    14.73 GB |   248.08 GB

eth0  /  daily

     day         rx      |     tx      |    total
-------------------------+-------------+------------
02/28/2021    782.85 MB |    28.91 MB |   811.76 MB
03/01/2021  16,777,216.00 TB |     5.44 GB | 16,777,216.00 TB
03/02/2021     36.87 GB |     1.66 GB |    38.53 GB
03/03/2021     19.02 GB |     1.40 GB |    20.43 GB
03/04/2021     20.13 GB |   890.23 MB |    21.00 GB
03/05/2021     35.30 GB |     1.80 GB |    37.10 GB
03/06/2021    156.60 GB |     5.20 GB |   161.80 GB
03/07/2021     19.98 GB |     1.94 GB |    21.92 GB
03/08/2021     12.50 GB |   808.16 MB |    13.29 GB
-------------------------+-------------+------------
estimated      31.47 GB |     1.99 GB |    33.46 GB

vnstat -h
Code:
 eth0                                                                     09:37
  ^                                               r                            
  |                                            r  r           r                
  |                             r              r  r           r                
  |                             r              r  r  r  r  r  r                
  |                             r              r  r  r  r  r  r                
  |                             r              r  r  r  r  r  r  r            
  |  r  r                       r              r  r  r  r  r  r  r     r      
  |  r  r  r  r  r     r  r     r  r     r  r  r  r  r  r  r  r  r     r      
  |  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r      
  |  rt rt rt r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rt r  r  r  r  r    
-+--------------------------------------------------------------------------->
  |  10 11 12 13 14 15 16 17 18 19 20 21 22 23 00 01 02 03 04 05 06 07 08 09  
                                                                               
h  rx (MiB)   tx (MiB)  ][  h  rx (MiB)   tx (MiB)  ][  h  rx (MiB)   tx (MiB)
10      816.0      276.6 ][ 18      516.6       29.6 ][ 02    1,404.3       36.7
11      837.0      219.4 ][ 19    1,740.6       67.6 ][ 03    1,460.3       59.4
12      751.1      257.9 ][ 20      678.7       36.6 ][ 04    1,518.1      354.6
13      674.4      133.0 ][ 21      553.5       28.0 ][ 05    1,912.1      118.5
14      641.5       27.6 ][ 22      594.3       31.5 ][ 06    1,110.4       47.9
15      526.7       26.0 ][ 23      655.4       34.9 ][ 07      571.0       28.6
16      685.7       28.8 ][ 00    1,819.7       70.5 ][ 08      823.1       33.4
17      721.0       30.1 ][ 01    1,936.0       42.0 ][ 09      247.7       17.1

NOTE: I have not reset. I'll wait in case you need something else
 
@dev_null
vnstat-export-db.txt
Code:
version;3
active;1
interface;eth0
nick;eth0
created;1614571993
updated;1615213801
totalrx;17592186380733
totaltx;19590
currx;182924857344
curtx;7335038976
totalrxk;169
totaltxk;155
btime;1615065263
d;0;1615179633;12801;808;243;125;1
d;1;1615093223;20461;1983;533;388;1
d;2;1615006854;160354;5325;800;463;1
d;3;1614920444;36142;1843;230;333;1
d;4;1614834035;20613;890;137;237;1
d;5;1614747639;19479;1437;828;930;1
d;6;1614661226;37752;1702;1019;358;1
d;7;1614574816;17592186072344;5570;624;490;1
d;8;1614571993;782;28;875;927;1
d;9;0;0;0;0;0;0
d;10;0;0;0;0;0;0
d;11;0;0;0;0;0;0
d;12;0;0;0;0;0;0
d;13;0;0;0;0;0;0
d;14;0;0;0;0;0;0
d;15;0;0;0;0;0;0
d;16;0;0;0;0;0;0
d;17;0;0;0;0;0;0
d;18;0;0;0;0;0;0
d;19;0;0;0;0;0;0
d;20;0;0;0;0;0;0
d;21;0;0;0;0;0;0
d;22;0;0;0;0;0;0
d;23;0;0;0;0;0;0
d;24;0;0;0;0;0;0
d;25;0;0;0;0;0;0
d;26;0;0;0;0;0;0
d;27;0;0;0;0;0;0
d;28;0;0;0;0;0;0
d;29;0;0;0;0;0;0
m;0;1614574816;17592186379950;19561;318;252;1
m;1;1614571993;782;28;875;927;1
m;2;0;0;0;0;0;0
m;3;0;0;0;0;0;0
m;4;0;0;0;0;0;0
m;5;0;0;0;0;0;0
m;6;0;0;0;0;0;0
m;7;0;0;0;0;0;0
m;8;0;0;0;0;0;0
m;9;0;0;0;0;0;0
m;10;0;0;0;0;0;0
m;11;0;0;0;0;0;0
t;0;1614574816;17592186072344;5570;624;490;1
t;1;1615006854;160354;5325;800;463;1
t;2;1614661226;37752;1702;1019;358;1
t;3;1614920444;36142;1843;230;333;1
t;4;1615093223;20461;1983;533;388;1
t;5;1614834035;20613;890;137;237;1
t;6;1614747639;19479;1437;828;930;1
t;7;1614571993;782;28;875;927;1
t;8;0;0;0;0;0;0
t;9;0;0;0;0;0;0
h;0;1615183176;1863391;72191
h;1;1615186779;1982458;42982
h;2;1615190382;1437954;37565
h;3;1615193985;1495367;60841
h;4;1615197588;1554492;363099
h;5;1615201191;1957976;121323
h;6;1615204794;1137085;49066
h;7;1615208397;584680;29334
h;8;1615211940;842836;34210
h;9;1615213801;252228;16906
h;10;1615132795;835619;283217
h;11;1615136398;857037;224615
h;12;1615139941;769138;264105
h;13;1615143543;690573;136226
h;14;1615147146;656915;28251
h;15;1615150749;539347;26595
h;16;1615154352;702181;29449
h;17;1615157955;738322;30812
h;18;1615161558;529037;30314
h;19;1615165161;1782337;69243
h;20;1615168764;694971;37523
h;21;1615172367;566828;28673
h;22;1615175970;608533;32237
h;23;1615179573;671085;35772


vnstat.txt
Code:
vnstats as of:
Mon Mar  8 09:32:04 EST 2021
eth0  /  monthly

    month        rx      |     tx      |    total
-------------------------+-------------+------------
   Feb '21     782.85 MB |    28.91 MB |   811.76 MB
   Mar '21   16,777,216.00 TB |    19.10 GB | 16,777,216.00 TB
-------------------------+-------------+------------
estimated  68,382,976.00 TB |    77.86 GB | 68,382,976.00 TB

eth0  /  weekly

                   rx      |     tx      |    total
---------------------------+-------------+------------
last 7 days     300.40 GB |    13.66 GB |   314.06 GB
   last week   16,777,216.00 TB |    18.31 GB | 16,777,216.00 TB
current week      12.50 GB |   808.16 MB |    13.29 GB
---------------------------+-------------+------------
   estimated     233.35 GB |    14.73 GB |   248.08 GB

eth0  /  daily

     day         rx      |     tx      |    total
-------------------------+-------------+------------
02/28/2021    782.85 MB |    28.91 MB |   811.76 MB
03/01/2021  16,777,216.00 TB |     5.44 GB | 16,777,216.00 TB
03/02/2021     36.87 GB |     1.66 GB |    38.53 GB
03/03/2021     19.02 GB |     1.40 GB |    20.43 GB
03/04/2021     20.13 GB |   890.23 MB |    21.00 GB
03/05/2021     35.30 GB |     1.80 GB |    37.10 GB
03/06/2021    156.60 GB |     5.20 GB |   161.80 GB
03/07/2021     19.98 GB |     1.94 GB |    21.92 GB
03/08/2021     12.50 GB |   808.16 MB |    13.29 GB
-------------------------+-------------+------------
estimated      31.47 GB |     1.99 GB |    33.46 GB

vnstat -h
Code:
 eth0                                                                     09:37
  ^                                               r                           
  |                                            r  r           r               
  |                             r              r  r           r               
  |                             r              r  r  r  r  r  r               
  |                             r              r  r  r  r  r  r               
  |                             r              r  r  r  r  r  r  r           
  |  r  r                       r              r  r  r  r  r  r  r     r     
  |  r  r  r  r  r     r  r     r  r     r  r  r  r  r  r  r  r  r     r     
  |  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r     
  |  rt rt rt r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rt r  r  r  r  r   
-+--------------------------------------------------------------------------->
  |  10 11 12 13 14 15 16 17 18 19 20 21 22 23 00 01 02 03 04 05 06 07 08 09 
                                                                              
h  rx (MiB)   tx (MiB)  ][  h  rx (MiB)   tx (MiB)  ][  h  rx (MiB)   tx (MiB)
10      816.0      276.6 ][ 18      516.6       29.6 ][ 02    1,404.3       36.7
11      837.0      219.4 ][ 19    1,740.6       67.6 ][ 03    1,460.3       59.4
12      751.1      257.9 ][ 20      678.7       36.6 ][ 04    1,518.1      354.6
13      674.4      133.0 ][ 21      553.5       28.0 ][ 05    1,912.1      118.5
14      641.5       27.6 ][ 22      594.3       31.5 ][ 06    1,110.4       47.9
15      526.7       26.0 ][ 23      655.4       34.9 ][ 07      571.0       28.6
16      685.7       28.8 ][ 00    1,819.7       70.5 ][ 08      823.1       33.4
17      721.0       30.1 ][ 01    1,936.0       42.0 ][ 09      247.7       17.1

NOTE: I have not reset. I'll wait in case you need something else
It looks as some Nan converted to string - it is similar to something like MAX_INT constant ....
 
Status
Not open for further replies.

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