This question I have seen posted but never answered. I've created an rrd file
and have populated it accordingly. I can run at the command line rddtool graph
and produce a graph. Now, I would like to use rrdcgi to produce on the fly graph
generation. I have placed my rrd.cgi file in my cgi-bin (redhat 7.2 apache). I
can see the page generated, however the image does not show up. I can also see a
gif file created in the directory. In my apache log, it mentions permission
error. So I chmod a+x gif file. Then I get exceution error.


rrd.cgi:

#!/usr/bin/rrdcgi

<HTML>
 <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
 <BODY>
 <H1>RRDCGI Example Page</H1>
 <P>
 <RRD::GRAPH test.gif --imginfo '<IMG SRC="%s" WIDTH="%lu" HEIGHT="%lu" >' -t
RWANDAL01_E0 -v bps
DEF:inoctets=rwandal.rrd:input:AVERAGE DEF:outoctets=rwandal.rrd:output:AVERAGE
CDEF:inbps=inoctets,8,* CDEF:outbps=outoctets,8,* A$
LINE1:outbps#0000FF:"Out traffic">
 </P>
 </BODY>
 </HTML>


apache log:

[error] (13)Permission denied: exec of /home/web/cgis/test.gif failed
[error] [client 170.50.81.149] Premature end of script headers:
/home/web/cgis/test.gif
[error] (8)Exec format error: exec of /home/web/cgis/test.gif failed
[error] [client 170.50.81.149] Premature end of script headers:
/home/web/cgis/test.gif

Any help is appreciated. Thanks in advance.

Johnny H. Leon






**************************************************************************
The information contained herein is confidential and is intended solely
for the addressee(s).  It shall not be construed as a recommendation to
buy or sell any security.  Any unauthorized access, use, reproduction,
disclosure or dissemination is prohibited.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall assume any legal liability or responsibility for any incorrect,
misleading or altered information contained herein. 
**************************************************************************


--
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

Reply via email to