I am tracking network traffic of my TPLink router using a Raspberry Pi that is running collecd.
Install collectd with sudo apt-get install collectd collectd-utils
Edit /etc/collectd/collectd.conf
to enable the SNMP plugin (uncomment) and to configure. Here's an example of my setup:
<Plugin snmp>
<Data "if_Octets">
Type "if_octets"
Table true
Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
</Data>
<Host "tp-link">
Address "192.168.0.1"
Version 1
Community "public"
Collect "if_Octets"
Interval 60
</Host>
</Plugin>
<Plugin snmp>
<Data "if_Octets">
Type "if_octets"
Table true
Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
</Data>
<Host "tp-link">
Address "192.168.0.1"
Version 1
Community "public"
Collect "if_Octets"
Interval 60
</Host>
</Plugin>
I set it up to send metrics to www.librato.com as it was the quick and simple (no installation of metric data store or visualization required).