Is there a way to debug error messagesd when creating images? Below is my sh script/cgi to create the image from rrd data. My image output is The image "http://mrtg/cgi-bin/isp/inbound-daily.cgi" cannot be displayed, because it contains errors.
What could case this issue? #!/bin/sh echo "Content-Type: image/png" echo rrdtool graph - \ --imgformat PNG \ --interlaced \ --start="-86400" \ --title 'ISP Traffic Inbound' \ --base="1000" \ --width="750" \ --height="200" \ --alt-autoscale-max \ --vertical-label "Kilobytes Per Second" \ DEF:if="/var/www/mrtg/traffic/isp/fastethernet2_0.rrd":ds0:AVERAGE \ DEF:io="/var/www/mrtg/traffic/isp/atm1_0.91-aal5_layer.rrd":ds0:AVERAGE \ CDEF:infuse="if,8,*" \ CDEF:inoar="io,8,*" \ LINE2:infuse#00CF00:"isp1" \ GPRINT:inuse:LAST:" Current\:%8.2lf %s" \ GPRINT:inuse:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:inuse:MAX:"Maximum\:%8.2lf %s\n" \ LINE2:inoar#002A97:"isp2" \ GPRINT:inoar:LAST:"Current\:%8.2lf %s" \ GPRINT:inoar:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:inoar:MAX:"Maximum\:%8.2lf %s" Thanks, michael -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
