Thanks for the update - have put your updated code in the script - will see how that pans out.
Couple of comments now we have your attention
The script only allows one value for $data and this gets passed to mrtg - this is fine but I have modified your script to graph some other data like registered users, totposts and total threads
http://www.fu-1.net/mrtg/regusers.html
http://www.fu-1.net/mrtg/totposts.html
http://www.fu-1.net/mrtg/totthreads.html
I'd like to be able to graph threads/posts on the same graph but am struggling with the Perl
Also do you know how to to stop MRTG converting values into K ie 6.4K rather than 6,400?
Finally I am using this remotely so your script calls uptime on the box running mrtg not the mysql box
Again - thanks for doing this - VERY cool