Hi, I noticed that when rrdtool didn't create an image caused by some error you get a broken image.... I've written a small patch which checks for rrdtool error's and if found it will send a transparant 1 pixel gif instead. Maybe instead of a transparant pixel we can greate a nice N/A image or something but for now this will do the job.
This patch is against the latest stable release. With kind regards, Jeroen Nijhof --- graph.php.orig 2009-01-29 00:23:20.000000000 +0100 +++ graph.php 2009-10-01 09:31:02.413962050 +0200 @@ -224,8 +224,14 @@ print htmlentities( $command ); print "</body></html>"; } else { - header ("Content-type: image/gif"); - passthru($command); + header ("Content-type: image/png"); + passthru($command, &$return_value); + if ($return_value != 0) { + // transparant pixel.gif + $pixel=base64_decode("R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="); + header ("Content-type: image/gif"); + print($pixel); + } } } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers