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

    Interface statistics lost on reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 2.3k 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.
    • T
      Toasticuss
      last edited by

      Pfsense keeps a great bandwidth counter for all the interfaces showing their total in and out usage amounts, however on reboot all of those numbers are lost. Is there something I can do to keep those on reboot?

      Perhaps the file that is keeping this information is being stored in /tmp and could be changed with a config file?

      I looked at Bandwidthd and it does the same thing, everything gets lost on reboot.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        I am guessing that you are on nanobsd and are talking about the RRD data. The data is kept on the RAM disk in real time, and as you say, all that is lost on a reboot. In Diagnostics:nanobsd Periodic Data Backup, you can tell it to save RRD data, and DHCP lease data, at regular intervals.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          I'm guessing he's talking about this from the Status: Interfaces: page.

          
          WAN interface 	(pppoe0)
          Status 		up
          PPPoE 		up  
          Uptime 		436:38:06
          MAC address 	00:00:00:00:00:00
          IP address 	xxx.xxx.xxx.xxx  
          Subnet mask 	255.255.255.255
          Gateway 	195.166.128.194
          ISP DNS servers 127.0.0.1
          8.8.8.8
          8.8.4.4
          In/out packets 		14654088/14590085 (13.48 GB/1.55 GB)
          In/out packets (pass) 	14590084/11209042 (13.48 GB/1.55 GB)
          In/out packets (block) 	64004/1 (8.30 MB/98 bytes)
          In/out errors 	0/0
          Collisions 	0 
          

          I think those stats are only kept as long as the interface remains up. Hence they are lost on reboot.

          I'm surprised that bandwidthd does that though. Are you running Nano?

          Maybe try one of the other suggestions here: http://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage%3F

          Steve

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