A couple of months ago, I was writting a shell script to monitor internet usage. The script was based on
netstat. The script was totally useless, because the statistic (in/out) is randomly resetted.
For example, this is statistic of a server which has been up for a couple of months:
Code:
netstat -I bfe0 -nh
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
bfe0 1500 <Link#1> 00:15:c5:23:89:72 299M 1 277M 0 1
bfe0 1500 10.1.1.0/24 10.1.1.2 299M - 277M - -
Only 300M? Should be 300
G actually. I was thinking maybe the stat resetted because of the interface was down, then up, but no, I havent brought I down for months.
Any idea?