[rrd-users] CGI Script Problem

Cassie Bezuidenhout cassieb at ifusion.co.za
Thu May 2 15:45:55 MEST 2002


Hi All

I am using a cgi script to display Graph Information. The idea is to get the
user to input the graph --start and --end dates and display results
according to the input dates.
Current I get the results when adding my own dates under rhe RRD section.

Can someone please give me a hint on how to add the variables...
My script looks something like this

<form>Start Date <INPUT TYPE=TEXT NAME=FROM> 
      End Date <INPUT TYPE=TEXT NAME=TO>
      <INPUT TYPE=SUBMIT>
</form>

<p>&nbsp;</p>
<p>&nbsp;</p>
<H2> Monthly Utilization Report </H2>
<font size="3" color=#666666>
The attached graphs is Monthly utilization traffic send and received per
interface. The Blue line represents traffic send out of the Branch. The
green line represents traffic received at the Branch. Keep in mind that the
Interface on IFusion side is monitored, thus the confusion about in and out
traffic from the Branch.
</font>
<p>&nbsp;</p>
<font size="5" color=#666666>Minolco Northern-Cape Kimberley</font>
<font size="5" color=#666666>Monthly Utilization</font>
<RRD::GRAPH /usr/local/nmis/reports/Minolco/Kimberley.gif
		--title "Minolco Kimberley"
		--vertical-label "% Utilisation"
		--start "FROM"
		--end "TO"
		--width 600
		--height 200
		--interlace
		DEF:input=/usr/serial3-0-6.rrd:ifInOctets:AVERAGE
		DEF:output=/usr/serial3-0-6.rrd:ifOutOctets:AVERAGE
		DEF:status=/usr/serial3-0-6.rrd:ifOperStatus:AVERAGE
		CDEF:inputUtil=input,8,*,64000,/,100,*
		CDEF:outputUtil=output,8,*,64000,/,100,*
		"LINE2:inputUtil#0000ff:In % Util",
		"LINE2:outputUtil#00ff00:Out % Util",
		LINE3:status#aa0000:Availability
		"GPRINT:status:AVERAGE:Avg Availability %1.2lf",
		"GPRINT:inputUtil:AVERAGE:Avg In %1.2lf",
		"GPRINT:outputUtil:AVERAGE:Avg Out %1.2lf",
		"COMMENT:Interface Speed 64000 kbps",		
		>
<p>&nbsp;</p>

Thanks
Cassie Bezuidenhout

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