Dear reader, I'm not updating these pages anymore. If you have tc or ip related questions, you can post them on the LARTC mailing list.



SNMP extension

Michal Charvat wrote an snmp extension so you can get tc information remotely via snmp. This requires a patched snmpd daemon. Information can be found on http://x-ray.prokon.cz/data/snmp/

Processing the tc information

I wrote some perl scripts :) to process this information.

Scripts

Installation

Download the above scripts. Put tcrrd2.pl in the web-server directory that's accesible as /cgi-bin. Make sure that the web-server user can execute tcrrd2.pl (chmod 755 tcrrd2.pl).
Put proces.pl somewhere else and execute it each 5 minutes. You can create a file /etc/cron.d/tc-snmp with contents :
0-55/5 * * * *  root proces.pl 2> /dev/null

Edit proces.pl and tcrrd2.pl and change the used variables. See the header of each script to find out what you need to change.

Example

Example

(It's possible that the example is not working)

Mrtg

The process.pl scripts creates also a file that can be used with mrtg to graph data. I never tested this but as fas as I understand the docs, it should work. However, mrtg is not as powerfull as my scripts proces.pl + tcrrd2.pl.

Example : mrtg.cfg