[rrd-users] Correct syntax in RRDs module ?

Nelis Lamprecht nelis at brabys.co.za
Tue Jun 10 16:01:17 MEST 2003


Hi List,

I've been teaching myself Perl the last couple weeks and am now
attempting to write a cgi program containing several graphs. Could
someone help me with the correct syntax to use with RRDs. I did look at
the example but am still having problems. This is my first post to this
list.

eg.

sub graph_router
{
    RRDS::GRAPH ("/usr/local/www/data/rrdtool/webrouter-day.gif",
        "--start -86400",
        "--vertical-label \"Bits per Second\",
        "DEF:inbytes=/usr/rrdata/webrouter.rrd:input:AVERAGE",
        "DEF:outbytes=/usr/rrdata/webrouter.rrd:output:AVERAGE",
        "DEF:min=/usr/rrdata/webrouter.rrd:input:MAX",
        "DEF:mout=/usr/rrdata/webrouter.rrd:output:MAX",
        "CDEF:inbits=inbytes,8,*",
        "CDEF:outbits=outbytes,8,*",
        "CDEF:percentin=inbits,16000,/,100,*,8,/",
        "CDEF:percentout=outbits,16000,/,100,*,8,/",
        "CDEF:fmin=min,8,*",
        "CDEF:fmout=mout,8,*",
        "AREA:inbits#00FF00:\"Incoming traffic\"",
        "LINE1:outbits#0000FF:\"Outgoing traffic\n"\");
        
 
    exit(0);
}


At this point I'm not sure if it's my code or the module arguments that
are incorrect. Any pointers appreciated and thanks in advance.

Kind Regards,
Nelis

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