[rrd-users] Re: CGI Script Problem
Leigh Sharpe
lsharpe at pacificwireless.com.au
Fri May 3 01:49:26 MEST 2002
Try it this way:
Use a single HTML form to gather the start and end dates required. Submit
this form to a seperate script based on RRDCGI which will then create the
graph for you using the dates you pass to it. Something like this:
#!/usr/local/rrdtool-1.0.33/bin/rrdcgi
<HTML>
<BODY>
<P>
Daily Graph
<P>
<RRD::GRAPH Kimberley.gif
--start <RRD::CV FROM> --end <RRD::CV TO>
etc...
>
Regards,
Leigh
Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph 9584 8966
Mob 0408 009 502
email lsharpe at pacificwireless.com.au
web www.pacificwireless.com.au
----- Original Message -----
From: "Cassie Bezuidenhout" <cassieb at ifusion.co.za>
To: <rrd-users at list.ee.ethz.ch>
Sent: Thursday, May 02, 2002 11:45 PM
Subject: [rrd-users] CGI Script Problem
>
> 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> </p>
> <p> </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> </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> </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
>
--
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