Not supported in this implementation.
You could read this and try to implement it. Report back if successful.
Are both questions not available?
I have seen this site and I tried a few commands with no success. And I am no programming expert.
Not supported in this implementation.
You could read this and try to implement it. Report back if successful.
If you read the introduction in the first post, you'll see that the primary driver for this app is to track the use of data in relation to data limits put in place by ISPs, thus we are principally interested in the WAN connection. There are other options which you can explore from the CLI. SSH into your router and runAre both questions not available?
I have seen this site and I tried a few commands with no success. And I am no programming expert.
vnstat --longhelp
. You will see the list of potential CLI options. Can someone help me set up vnstat to monitor vlan1? Not sure what I’m doing wrong. Thank you!I said “no” to the default eth0, specified vlan1, and it still wrote the .conf for eth0. Edit: after I manually changed .conf file, I got “Error: Interface "vlan1" not found in database.”
I can't reproduce the issue with it not being set correctly on install. Please can you try uninstalling and re-installing, and try using vlan1 again?Can someone help me set up vnstat to monitor vlan1? Not sure what I’m doing wrong. Thank you!
If you read the introduction in the first post, you'll see that the primary driver for this app is to track the use of data in relation to data limits put in place by ISPs, thus we are principally interested in the WAN connection. There are other options which you can explore from the CLI. SSH into your router and runvnstat --longhelp
. You will see the list of potential CLI options.
Note that changing the configuration from the CLI could adversely effect the setup and data collection of vnStat-on-Merlin, and as I noted above, is not supported, but if you discover something new, feel free to report back.
Thank you for helping.I can't reproduce the issue with it not being set correctly on install. Please can you try uninstalling and re-installing, and try using vlan1 again?
parse error: Invalid numeric literal at line 1, column 6
Error: Interface "vlan1" not found in database.
there's definitely something wrong with your setup, are you running any other scripts? i get no errors after editing the config via dn-vnstatThank you for helping.
I just rebooted, and reinstalled vnstat.
I still have the problem during initial setup, when it detects eth0 as the default, I answer no, and input vlan1, it proceeds to set it up for eth0 anyway.
Then, I use dn-vnstat to edit vnstat.conf, change “eth0” to “vlan1”, and I get this error:
Code:parse error: Invalid numeric literal at line 1, column 6
After that, if I use option 1 to regenerate stats, I get:
Code:Error: Interface "vlan1" not found in database.
This is the baffling thing. I’m really not running anything unconventional. Here’s everything I’ve installed:there's definitely something wrong with your setup, are you running any other scripts? i get no errors after editing the config via dn-vnstat
amtm 3.2.1 FW by thelonelycoder
RT-AC1750_B1 (armv7l) FW-386.3 @ 10.48.48.1
The Asuswrt-Merlin Terminal Menu
8 open nsrum v30.4.0
vn open vnStat v2.0.3
ep manage Entware packages
em open email settings
dc manage Disk check script dcl show log
fd run Format disk fdl show log
sw manage Swap file /mnt/Kingston4GB 2.0G
-rwxrwxrwx 1 admin root 130 Dec 15 14:13 ddns-start
-rwxrwxrwx 1 admin root 374 Dec 15 14:13 ddns-start.duckdns
-rwxrwxrwx 1 admin root 956 Dec 15 14:14 ddns-start.namecheap
-rwxr-xr-x 1 admin root 75769 Dec 27 22:16 dn-vnstat
-rwxrwxrwx 1 admin root 1118 Dec 15 14:15 nat-start.vlan
-rwxr-xr-x 1 admin root 18988 Dec 15 14:46 nsrum
-rwxr-xr-x 1 admin root 175 Dec 27 22:17 post-mount
-rwxr-xr-x 1 admin root 57 Dec 15 14:16 pre-mount
-rwxr-xr-x 1 admin root 68 Dec 27 22:17 service-event
-rwxr-xr-x 1 admin root 58 Dec 21 09:49 services-stop
Dec 29 15:32:13 vnstat: Starting monitoring for interface vlan1
Dec 29 15:32:13 vnstatd[17196]: Error: pidfile "/opt/var/run/vnstat.pid" lock failed (Invalid argument), exiting.
Dec 29 15:32:13 vnstatd[1595]: SIGTERM received, exiting.
Dec 29 15:32:14 admin: Started vnstatd from .
Dec 29 15:32:14 vnstatd[17225]: vnStat daemon 2.8 started. (pid:17225 uid:0 gid:0)
Dec 29 15:32:14 vnstatd[17225]: Monitoring (1): eth0 (1000 Mbit)
Sleeping for 60s before generating initial stats
vnstati: error while loading shared libraries: libwebpdecoder.so.4.1.1: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libwebpdecoder.so.4.1.1: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libwebpdecoder.so.4.1.1: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libwebpdecoder.so.4.1.1: cannot open shared object file: No such file or directory
vnstati: error while loading shared libraries: libwebpdecoder.so.4.1.1: cannot open shared object file: No such file or directory
vnstati updating stats for UI
Please see http://www.snbforums.com/threads/re...-limit-monitoring-r1-and-r2.71523/post-729470On an AX88U running 386.4 Beta 2
did an uninstall of vnstat then reinstalled (via amtm).
Getting this error:
Did a quick opkg check and I don’t see any mention of libwebpdecoder.
Problem with my Entware installation?
How about that! Thanks @thelonelycoder!Thanks to @thiggins for the swift action: vnStat is now in the prefix and filter options for this forum.
End-of-year-housekeeping: v. 2.0.4 (R2) has been published. This update includes some updates to charts, interface id, and uninstall functions.
Happy New Year, and thanks again for using vnStat-on-Merlin!
there's definitely something wrong with your setup, are you running any other scripts? i get no errors after editing the config via dn-vnstat
WAN Interface detected as eth0
Is this correct? (y/n) n
Please enter correct interface: vlan1
Is this correct? (y/n) y
/jffs/addons/dn-vnstat.d/vnstat.conf does not exist, downloading now.
# default interface (leave empty for automatic selection)
Interface "eth0"
Thanks for the kind words.Hi! I hope I am right in this thread. First of all: vnstat is an awesome tool! Just three short questions:
You would need to modify the cron job in the jffs scripts within which it is created. You could create a script that would automatically check and overwrite any dn-vnstat entry, but dn-vnstat is pretty stable, so you shouldn't get many dn-vnstat script changes.
- How could I edit the cron time for sending the daily mail and make the change survive updates of vnstat? I'd just need a slightly different time. I wouldn't mind if this leads to vnstat data not exactly covering 24 hours.
You would need to create a script, but that's the pretty much the monthly total included in the UI and in the daily summary.
- Is there a setting that sends a monthly mail? Or does it suffice to just change the daily cron job to monthly?
This has been asked several times. HA has a variable impact on data usage counts: anything that modifies how data transitions the IP stack can lead to inaccurate counts. In my limited testing with HA enabled, my totals seem reasonably accurate, but I only use 10-20 gig/day.
- Turning of the router's hardware accelleration: what effects does this have apart from vnstat?
Thank you very much for your help.
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!