OpenWrt Forum Archive

Topic: Log Bandwidth usuage - Daily, Monthly

The content of this topic has been archived on 3 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Is there something that will allow me to log my daily and monthly bandwidth usage?
Thanks

snmpd @ openwrt box & mrtg @ the apache/server box.

Try vnstat. This is a nice text based app to monitor your bandwidth usage.

Hi !
rrdtool would also work (if menawhile fixed in svn)

ciao gerd

vnstat seems like a nice tool to use, where I can get it for openwrt?

I kinda want something that shows me the info for the past month in a table form and not so much a graph form.

(Last edited by pyther on 12 Apr 2008, 04:17)

pyther wrote:

vnstat seems like a nice tool to use, where I can get it for openwrt?

You can install it with ipkg like other packages ...

Alright thanks, I didn't realize vnstat was in the repo tongue

How should I go about copying the database on a shutdown or reboot, and then on a regular basis? I thinking that I would want to make some space on the jffs partition and maybe copy the database one a week and then on shutdown/reboot. Then I would setup something like a samba share I copy the database every hour maybe? I think I read somewhere that copying to jffs frequently is bad.

Also how can I restore the database? Thanks!

EDIT: I ended up mounting a remote nfs share to /var/lib/vnstats and in /etc/init.d/custom-startup I added

mkdir -p /var/lib/vnstat
mount /var/lib/vnstat

Everything seems to be ok so far smile

(Last edited by pyther on 13 Apr 2008, 00:32)

The discussion might have continued from here.