[rrd-users] truble to use rrdcgi with rrdtool-1.0.48 and 1.0.49

Peter Woell rrd at woells.de
Tue Dec 21 17:55:57 MET 2004


Hi all,

I hope this is the right list to find out if I make a mistake or there is 
a bug.

I have a web page (see below) which call rrdcgi.
On the web page the user have the choice to select the rrd-database and to 
custamice the view.
So the users have the choice to select the data they want to see.

This works fine until version 1.0.45
In the version 1.0.48 and 1.0.49 this do not further work.

The value SIZE generate the following error message:
[ERROR: can't parse ' -w 900 -h 300']

If a user unselect a line we get the error message 
[ERROR: can't parse ''] 

Have anyone a idea?

Thanks
regards

Peter Woell


# Web Page
---8<---8<---
...
<FORM action="./create_graf.cgi" method=post target="newWin" onsubmit="openWindow()" >
<SELECT NAME="RRD_NAME" SIZE="10" TYPE=text VALUE="" STYLE="font-family : monospace">
...
...
<input type=checkbox name="IN_Y" checked value="LINE3:in8#FF00FF:in"> Incomming Traffic<br>
<input type=checkbox name="OUT_Y" checked value="LINE2:out8#0000FF:out"> Outgoing Traffic<br>
<input type=checkbox name="LOW_Y" checked value="LINE2:batch8#00FF00:batch"> Low Queue<br>
<input type=checkbox name="DEF_Y" checked value="LINE2:default8#000080:default"> Default Queue<br>
<input type=checkbox name="CRIT_Y" checked value="LINE2:critical8#800000:critical"> Critical Queue<br>
<input type=checkbox name="LLQ_Y" checked value="LINE2:llq8#FF8000:llq"> LLQ<br>
<input type=radio name="SUM_Y" value="">no Queue summary <br>
<input type=radio name="SUM_Y" value="AREA:sum3#FFFF00:queue_sum">Summary of Low + Default + Critical Queue<br>
<input type=radio name="SUM_Y" checked value="AREA:sum4#FFFF00:queue_sum">Summary of Low + Default + Critical + LLQ Queue<br>
<input type=checkbox name="LOWER" checked value="-l 0"> Absolute Graph<br>
<input type=radio name="SIZE" checked value=" -w 900 -h 300"> 900 X 300
<input type=radio name="SIZE" value=" -w 600 -h 200"> 600 X 200
<INPUT TYPE="SUBMIT" VALUE=" request graph "></FORM>
...
---8<---8<---

# ./create_graf.cgi
---8<---8<---
#!/opt/rrdtool-1.0.45/bin/rrdcgi
<HTML> <HEAD> </HEAD>
  <BODY text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">
    <RRD::GRAPH png/<RRD::CV RRD_NAME><RRD::TIME::NOW %H%M%S>.jpg
      --title "Queue statistic of <RRD::CV RRD_NAME> "
      -v "bits/s" 
      <RRD::CV SIZE> 
      <RRD::CV LOWER>
      -s "<RRD::CV START>" 
      -e "<RRD::CV END>"
      DEF:in=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:in:AVERAGE 
      CDEF:in8=in,8,*
      DEF:out=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:out:AVERAGE 
      CDEF:out8=out,8,* 
      DEF:batch=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:batch:AVERAGE
      CDEF:batch8=batch,8,*
      DEF:default=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:default:AVERAGE
      CDEF:default8=default,8,*
      DEF:critical=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:critical:AVERAGE
      CDEF:critical8=critical,8,*
      DEF:llq=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:llq:AVERAGE
      CDEF:llq8=llq,8,*
      DEF:iflex=/home/cisco-qos/rrd/<RRD::CV RRD_NAME>.rrd:iflex:AVERAGE
      CDEF:iflex8=iflex,8,*
      CDEF:sum4=batch8,default8,critical8,llq8,+,+,+
      CDEF:sum3=batch8,default8,critical8,+,+
      <RRD::CV SUM_Y> 
      COMMENT:\l
      <RRD::CV IN_Y> 
      <RRD::CV OUT_Y> 
      COMMENT:\l
      <RRD::CV LOW_Y> 
      <RRD::CV DEF_Y> 
      <RRD::CV CRIT_Y> 
      <RRD::CV LLQ_Y> 
      COMMENT:\l
    >
</BODY></HTML>
---8<---8<---

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