[rrd-users] Re: rrdcgi, who to get date/time onto the graphic

Alex van den Bogaerdt alex at ergens.op.het.net
Sun May 30 14:01:21 MEST 2004


On Sun, May 30, 2004 at 01:40:57PM +0200, Micha Holzmann wrote:

> > For this to work, "<RRD::TIME::NOW %c>" will have to be parsed
> > and processed by the rrdtool cgi program.  Perhaps you are not
> > running it?  Another reason might be that somehow rrdcgi is not
> > recognizing the string (hidden characters perhaps?)

> Yes i am using the rrdcgi binary and no hidden characters.

Smaller example, try it.

>--- cut here ---<
#!/usr/bin/rrdcgi
<HTML>
<HEAD><TITLE>rrdcgi test page</TITLE></HEAD>
<BODY>
<H1>Localtime <RRD::TIME::NOW %c></H1>
</BODY>
</HTML>
>--- cut here ---<

Try to run it from the command line, like so:

(alter to match your file and location)

/var/www/cgi-bin/test.cgi < /dev/null

If the output matches this ...

>--- cut here ---<
(offline mode: enter name=value pairs on standard input)
Content-Type: text/html
Content-Length: 119
 
<HTML>
<HEAD><TITLE>rrdcgi test page</TITLE></HEAD>
<BODY>
<H1>Localtime Sun May 30 14:54:55 2004</H1>
</BODY>
</HTML>
>--- cut here ---<

... everything is OK and you may need to check your webserver settings.
Don't forget its logs.

HTH
Alex
-- 
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers.  If
you reply to me off-list, you'd better tell me you're doing so.  If
you don't, and if I reply to the list, that's your problem, not mine.

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