Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Since just doing a cronjob every morning, before the router reboots:

ifconfig > "`date`.ifconfig.txt"

isn't very effective, since after ~4 GByte's the counter in the ifconfig will go to zero. So if there was ~5 GByte traffic, only 1 GByte will be in the txt file.

My question: How can I measure daily traffic with OpenWRT 12.04?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Normally you telnet or ssh the router to get the data from ifconfig every minute or so and collect your traffic data. If you use luci then you can read all your statistics on the web interface. Possible is also a solution to get your traffic data by polling via the web interface.

Depending what you need, there is a good info about OpenWRT Statistical Data Overview. I personally like rrdtool. There is also more info RRDTool.

You'll get more info by googling for OpenWrt+RRD

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.