I had a similar problem when I was first playing with rrdcgi.  I had to add
the "--imginfo '<IMG SRC=.../%s WIDTH=%lu HEIGHT=%lu>'" option to the
RRD::GRAPH call because my images were in a different directory than the
generated html page.

Using your example, if /graphs on your webserver is located in c:\graphs,
and / is located in c:\www then something like this may work:

<RRD::GRAPH c:\graphs\baza2.gif --lazy
         --imginfo '<IMG SRC=/graphs/%s WIDTH=%lu HEIGHT=%lu>'
         --title "Sample graph for baza2.rrd "
         DEF:cel=baza2.rrd:X1:AVERAGE
         LINE2:cel#00a000:"Sth">

Jason...

-----Original Message-----
From: Michal Szydlowski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 2:42 AM
To: rrd-users@list.ee.ethz.ch
Subject: [rrd-users] rrdcgi problem: graph created but not displayed


Hi!

I'm working with rrdtool and wanted to create webpage to display graphs.
Everything seems to work OK: graph is created, but is not displayed on the
webpage. There is just empty space, which is even with proper size, but the
graph is not displayed. I'm completely out of idea what could be the
problem. I'm working on Windows 2000 with Apache server installed.

>From the rrdcgi tag:
<RRD::GRAPH baza2.gif --lazy
         --title "Sample graph for baza2.rrd "
         DEF:cel=baza2.rrd:X1:AVERAGE
         LINE2:cel#00a000:"Sth">

(as simple as possible:)) 

such HTML is created:

<IMG SRC="./baza2.gif" WIDTH="495" HEIGHT="172">

and of course the file baza2.gif is created in the cgi-bin directory where
script is run from.Don't know why it's not displayed on the webpage. 

Got any clue what could be wrong??

Best Regards
Michal





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

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