Here are a few Perl and Shell Scripts that i have written for use with MRTG to make some cool graphs
Included in each is a sample of how to use in /etc/mrtg/mrtg.cfg
MRTG Scripts