Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    VNSTAT2 and month rollover

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      secs
      last edited by

      Hi all.

      I installed the VNSTAT2 package and it works great. I searched tne net and found there is an option to alter the date the logs rollover or in other words, the date it consideres the first day of the month. However I cannot find the config file for the package. I want to make the 18th its monthly start so I can keep track of my usage and worked out how to do it using a config file but where is it?

      Thanks

      1 Reply Last reply Reply Quote 0
      • P Offline
        Perry
        last edited by

        To search for a file in shell use
        find / -name "vnstat*"

        The package do not use vnstat.conf. But you can try creating one and only add MonthRotate 18 to it.
        ee /usr/local/etc/vnstat.conf

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • Z Offline
          Zorac
          last edited by

          i ran into the same problem, and ended up writing my own script, shared here if your interestd

          http://forum.pfsense.org/index.php/topic,22908.msg122448.html#msg122448

          i had no idea i could change month start on vnstat with the conf file.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.