[rrd-users] Re: rrdtool

Michael Earls Michael.Earls at cchmc.org
Wed Jun 11 16:13:09 MEST 2003


mrtg:/usr/lib/cgi-bin/isp# ./inbound-daily.cgi                          
    
Content-Type: image/png

libpng warning: Application was compiled with png.h from libpng-1.0.12
libpng warning: Application  is  running with png.c from libpng-1.2.5
libpng error: Incompatible libpng version in application and library
./inbound-daily.cgi: line 28: 27755 Segmentation fault      rrdtool
graph /var/www/mrtg/traffic/internet/inbound-daily.png --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/fuse.chmcc.org/fuse.chmcc.org_fastethernet2_0.rrd":ds0:AVERAGE
DEF:io="/var/www/mrtg/traffic/oarnet.chmcc.org/oarnet.chmcc.org_atm1_0.91-aal5_layer.rrd":ds0:AVERAGE
CDEF:infuse="if,8,*" CDEF:inoar="io,8,*" LINE2:infuse#00CF00:"Fuse"
GPRINT:infuse:LAST:" Current\:%8.2lf %s"
GPRINT:infuse:AVERAGE:"Average\:%8.2lf %s"
GPRINT:infuse:MAX:"Maximum\:%8.2lf %s\n" LINE2:inoar#002A97:"Oar.Net"
GPRINT:inoar:LAST:"Current\:%8.2lf %s"
GPRINT:inoar:AVERAGE:"Average\:%8.2lf %s"
GPRINT:inoar:MAX:"Maximum\:%8.2lf %s"
mrtg:/usr/lib/cgi-bin/isp# 

replaced 
rdtool graph /dir/isp.png \

>>> "Todd A. Green" <slartibartfast at awardsforfjords.com> 06/11/03
10:00AM >>>
Replace the - with a file name and run the script from the
commandline.
. 
On Wed, 2003-06-11 at 08:30, Michael Earls wrote:
> 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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe 
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help 
> Archive     http://www.ee.ethz.ch/~slist/rrd-users 
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 
-- 
Todd A. Green <slartibartfast at awardsforfjords.com>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list