Actually, I reviewed the script and I'm not using this one with rrdtool but routers2.cgi, a script you can find here:
http://www.steveshipway.org/software/
I'm facing the same problem and found this thread thanks to Google.
Can you please explain a little bit how you managed to solve this issue because I have exactly the same one?