[rrd-users] Re: strange graphing problem

Geert van der Ploeg rrd at geert.triple-it.nl
Tue Jul 9 17:36:21 MEST 2002


I think there's a error in the interpolation of the $argv variables...

When just replacing the variables with real names, the shell-version of the
script creates a good graph in my environment.

So, imho, there's nothing wrong with the rrd syntax.



HTH.

Regards,

Geert van der Ploeg
Triple IT


----- Original Message -----
From: "Nicholas Lagaros" <nicholas.lagaros at moorecap.com>
To: <rrd-users at list.ee.ethz.ch>
Sent: Tuesday, July 09, 2002 4:45 PM
Subject: [rrd-users] strange graphing problem


>
> The following will not produce any line in the graph, although the GPRINTS
> calculate correctly.
>
> rrdtool graph /home/netminder/png/netminder_${argv[1]}-1.png \
>         DEF:rtt=/home/netminder/rrd/netminder_${argv[1]}.rrd:time:AVERAGE
\
>         LINE2:rtt#008000:"shit" \
>         AREA:rtt#008000 \
>         -a PNG \
>         -v milliseconds \
>         -x MINUTE:60:HOUR:1:HOUR:2:0:%H \
>         -t "5 Minute Average" \
>         GPRINT:rtt:MIN:"Min\: %.2lf ms   " \
>         GPRINT:rtt:MAX:"Max\: %.2lf ms   " \
>         GPRINT:rtt:AVERAGE:"Avg\: %.2lf ms   " \
>         GPRINT:rtt:LAST:"Cur\: %.2lf ms\c"
>
> However, this code using RRD::GRAPH (cgi) works just fine:
>
> <RRD::GRAPH /var/www/html/images/NetMinder/<RRD::CV::PATH RRD_NAME>-1.png
>   DEF:rtt=/home/netminder/rrd/netminder_<RRD::CV::PATH
> RRD_NAME>.rrd:time:AVERAG
> E LINE2:rtt#008000 AREA:rtt#008000
>   -a PNG
>   --imginfo '<IMG SRC=/images/NetMinder/%s>'
>   -v milliseconds
>   -x MINUTE:60:HOUR:1:HOUR:2:0:%H
>   -t "5 Minute Average"
>   GPRINT:rtt:MIN:"Min\: %.2lf ms   "
>   GPRINT:rtt:MAX:"Max\: %.2lf ms   "
>   GPRINT:rtt:AVERAGE:"Avg\: %.2lf ms   "
>   GPRINT:rtt:LAST:"Cur\: %.2lf ms\c">
>
> I can't see a difference?  Can anyone help?
>
> --
> 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