mrtg-mysq-load is a small Perl script which is meant to be run by mrtg. It will fetch the total number of queries and slow queries handled by a mysql server. WWW: http://www.bitbybit.dk/mysql/mrtg-mysql-load/