Interface statistics lost on reboot
-
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.
-
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.
-
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