[rrd-users] strange graphing problem

Nicholas Lagaros nicholas.lagaros at moorecap.com
Tue Jul 9 16:45:15 MEST 2002


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



More information about the rrd-users mailing list