Search results

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

  1. Vergo

    vnStat [Release] vnStat-on-Merlin - UI, CLI and email - data use and data limit monitoring - R1 and R2

    Sorry for not noticing this earlier as that ping didn't result in an email notification for some reason. In the sqlite database, "date" in the "month" table really contains only the month as information. It's being constructed with "strftime('%%Y-%%m-01', %s%s)" or "strftime('%%Y-%%m-01'...
  2. Vergo

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

    If you'd want to hack it around a little bit then (without testing) I'd try to do it something like this: edit the configuration stop the daemon vnstat -i someinterface --export | sed '/^m;0;/d' >some_temp_file import that back and overwrite the existing database start the daemon That discards...
  3. Vergo

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

    If MonthRotate has a value of 1 then the month obviously changes on the first day of every month. If you give it, for example, a value of 10 then the month would change on the 10th day. However, from vnStat point of view, when you make that change the month can't already be the ongoing month or...
  4. Vergo

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

    That "$(date +%m)" isn't going to work in all situations as you'd most likely want. If the "MonthRotate" configuration option is changed to have a value different than 1 then for the first <value> days of the month $(date +%m) will output something that's not yet visible in the database. You can...
  5. Vergo

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

    The output of --oneline, --json or --xml isn't intended to be imported back. If you need to move the version 1.x database around between architectures then --exportdb and --importdb are there for that. In version 2.x it's possible to move the database file directly as sqlite handles the format...
  6. Vergo

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

    Few comments/suggestions from the (vnStat) author as I happen to find this discussion while looking for possible missed issues before the vnStat version 2.7 release: It's called "vnStat" while "vnstat" is the cli command for textual output and "vnstati" for image output (that "i" is just for...
Top