I'm not quite sure what you mean. If I read your message correctly then it *would* be snmpd/rrdtool type of thing that you are after. If you are absolutely sure this is not what you want then I think you have to get a little more specific. What you proprose gives you the same thing you can get from snmp and rrdtool. I have built a net-snmp ipkg and am currently graphing one of my wrt54g's interfaces:
http://voidmain.is-a-geek.net/cacti/gra … ;leaf_id=9
Actually I just started my graphs going again a few hours ago as my WRT was down for the last few days and I didn't realize it.
Here's the ipkgs (I suggest installing the static server):
http://voidmain.is-a-geek.net/files/ipkg/
Of course others have come up with ways to do similar things via the web server. If you can get a little more specific I could probably come up with a better answer. Of course you probably already know all of this because you were involved in the building of the ipkg.
The only other thing I can think you are asking for is listing the total number of bytes in each 24 hour period for each interface in a text page. If this is what you are after it would be very trivial to do, in fact I would still use SNMP to do this. The OIDs that are used to graph the interface usage on my page are just counters. You can have a program on another machine poll these counters and keep track of the total traffic.
List of interfaces (same as reported by ifconfig):
$ snmpwalk -v 1 -c public xxx.xxx.xxx.xxx ifDescr
RX Bytes (same as reported by ifconfig):
$ snmpwalk -v 1 -c public xxx.xxx.xxx.xxx ifInOctets
TX Bytes (same as reported by ifconfig):
$ snmpwalk -v 1 -c public xxx.xxx.xxx.xxx ifOutOctets
You'll want to check these counters fairly often and update your totals because if you have a high traffic load these counters could roll over relatively often. The basic logic in keeping the total would be to query each of the above OIDs and if the value is greater than the value of the previous query then subtract the previous query from the current one and add the value to the total. If the current value is less than the previous value then just add the current value to the total because it would indicate a rollover. After 24 hours of this, record your totals and zero them out.
On my 1.1 router eth0 is index 2 in the snmp output (loopback is index 1) so to get the current RX bytes for eth0 I would:
$ snmpget -O qv -v 1 -c public xxx.xxx.xxx.xxx ifInOctets.2