[rrd-users] Re: Correct syntax in RRDs module ?

Serge Maandag serge.maandag at staff.zeelandnet.nl
Tue Jun 10 16:18:33 MEST 2003


It would help if you added the error message (it's in your webservers
error-log).

Anyhow, it might be this:

"LINE1:outbits#0000FF:\"Outgoing traffic\n"\");

You seem to have escaped the wrong "

Serge.

-----Original Message-----
From: Nelis Lamprecht [mailto:nelis at brabys.co.za] 
Sent: Tuesday, June 10, 2003 4:01 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Correct syntax in RRDs module ?


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