[rrd-users] Newbie: RRD:CV variables

Johnny.LEON at us.socgen.com Johnny.LEON at us.socgen.com
Thu Jan 24 18:04:21 MET 2002



This might just be a silly question, but please bare with me.
Based on example 2 in the rrdcgi man page. How do you define, or how does rrdcgi
know what variables will be subtituted in those tags.

I've also read somewhere that a prior cgi would define the variables in its url.
Something to the effect of test.cgi?rwandal
If that is one option, how would rrdcgi parse the url to use it's variables.

What are the options to define the variables?

Notice the H1 tag with <RRD::CV name> in my example below. I would like the name
to equal rwandal

Using my past example:

#!/usr/bin/rrdcgi

<HTML>
 <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
 <BODY>
 <H1>RRDCGI Example Page for <RRD::CV name></H1>
 <P>
 <RRD::GRAPH ../images/test.gif --imginfo '<IMG SRC="/web/images/%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>

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