Thread: RX bytes
View Single Post
  #7   (View Single Post)  
Old 22nd October 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

openbsd uses 64bit counters.

> So even if it was reset I would only be missing a few seconds of data. Would love to hear some better ideas.

one way you could keep track of the bytes passing through an interface is through a script running from cron that keeps some state on the disk so that it can continue tracking the usage correctly on interface reset, counter roll-over, reboot etc.

i wrote a daemon + script to keep track of my net usage you can check it out http://www.daemonforums.org/showthre...ighlight=bwmon

also, i recall a program mentioned on one of the threads (can't remember which one - try searching) that can give you statistics in nice html o/p, graphs etc.
Reply With Quote