[rrd-users] Getting data for 1 day with RRDCGI

nate rrdtool at aphroland.org
Tue Jul 1 19:40:34 MEST 2003


Been workin with RRDtool quite a bit recently, its quite fancy!

anyways, getting strange results. I am generating a graph using
forms, and the end result command is using these options:

<RRD::GRAPH
graphics/bobo/responsetime__Xaxis_700_Yaxis_225__STEP_300_from_06_24_2003_to_06_24_2003.gif
--title="Bobo Response Times[06/24/2003 -> 06/24/2003]" -w 700 -h 225 -v
"Response time(seconds)" --imginfo '<IMG SRC=graphics/bobo/%s>' --start
'12:00am 06/24/2003-8:00am 06/24/2003' --step 300 -X 0

it creates the graph but it is a weekly graph instead of a daily so
I don't get the data I am asking for(8 hours worth) I am getting 1 weeks
worth of data put in the graph(days of the week are on the X axis)


the raw cgi stuff(may be word wrapped ..)
<RRD::GRAPH graphics/bobo/responsetime__Xaxis_<RRD::CV
RRD_XAXIS>_Yaxis_<RRD::CV RRD_YAXIS>_STEP_<RRD::CV RRD_STEP>_from_<RRD::CV
RRD_MONTH_FROM>_<RRD::CV RRD_DATE_FROM>_<RRD::CV
RRD_YEAR_FROM>_to_<RRD::CV RRD_MONTH_TO>_<RRD::CV RRD_DATE_TO>_<RRD::CV
RRD_YEAR_TO>.gif --title="Bobo Response Times[<RRD::CV
RRD_MONTH_FROM>/<RRD::CV RRD_DATE_FROM>/<RRD::CV RRD_YEAR_FROM> ->
<RRD::CV RRD_MONTH_TO>/<RRD::CV RRD_DATE_TO>/<RRD::CV RRD_YEAR_TO>]" -w
<RRD::CV RRD_XAXIS> -h <RRD::CV RRD_YAXIS> -v "Response time(seconds)"
--imginfo '<IMG SRC=graphics/bobo/%s>' --start '<RRD::CV
RRD_HOUR_FROM>:<RRD::CV RRD_MINUTE_FROM><RRD::CV RRD_AMPM_FROM> <RRD::CV
RRD_MONTH_FROM>/<RRD::CV RRD_DATE_FROM>/<RRD::CV RRD_YEAR_FROM>-<RRD::CV
RRD_HOUR_TO>:<RRD::CV RRD_MINUTE_TO><RRD::CV RRD_AMPM_TO> <RRD::CV
RRD_MONTH_TO>/<RRD::CV RRD_DATE_TO>/<RRD::CV RRD_YEAR_TO>' --step <RRD::CV
RRD_STEP> <RRD::CV RRD_LEGEND> <RRD::CV RRD_MINORGRID> -X 0
        DEF:weblyn10=rrd/bobostats.rrd:weblyn10bobo:AVERAGE
        DEF:weblyn11=rrd/bobostats.rrd:weblyn11bobo:AVERAGE
        DEF:weblyn12=rrd/bobostats.rrd:weblyn12bobo:AVERAGE
        DEF:weblyn13=rrd/bobostats.rrd:weblyn13bobo:AVERAGE
        CDEF:total="weblyn10,weblyn11,+,weblyn12,+,weblyn13,+,4,/"
                AREA:total#0000FF:"Average Response time"
        COMMENT:"min/avg/max/last="
        GPRINT:"total:MIN:%0.3lf\g"     COMMENT:"/\g"
        GPRINT:"total:AVERAGE:%0.3lf\g" COMMENT:"/\g"
        GPRINT:"total:MAX:%0.3lf\g"     COMMENT:"/\g"
        GPRINT:"total:LAST:%0.3lf"      COMMENT:"\n"
        CDEF:nodata="total,UN,INF,UNKN,IF"
                AREA:nodata#000000:"Missing Data\n"
        HRULE:4#800080:"Performance boundry\n"
        COMMENT:"Data Updated: <RRD::TIME::LAST rrd/bobostats.rrd %c>\n"
COMMENT:"Generated: <RRD::TIME::NOW %c>">

any ideas on what I could do ?

thanks!

nate




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