[rrd-users] Re: Is 65000 max number of chars in a graph-statement?

Alex van den Bogaerdt alex at ergens.op.het.net
Wed Jan 18 23:47:36 MET 2006


On Wed, Jan 18, 2006 at 06:39:32PM +0100, Rickard Dahlstrand wrote:
> I think I'm hitting the upper limit with my graph-statement that's 76kb
> large. When I cut it down to about 65k it works like a charm.
> 
> ./dd: line 1: /usr/local/bin/rrdtool: Argument list too long

This is an OS limitation.  I'm not sure if RRDtool has a limit
as well.

> I'm trying to use pipes but they fail as well: (BTW is this the correct
> way to use them)

No.  You would be doing something like
   echo graph /web/out.png DEF.... LINE:....  | rrdtool -
(so: you enter the entire script on one line)

> Is there any way to pass a 76k command set to rrdtool?

Are you sure you need such a large script?  For instance:

cd somedirectory
rrdtool graph x.png DEF:a=my.rrd:a:....
        DEF:b=my.rrd:b:....
etc

vs.

cd someotherdirectory
rrdtool graph /path/to/targetdirectory/myveryniceoutput.png \
    DEF:thisnamedescribesvar1=DEF:verylongDEFname=/path/to/directory/router_a_blade_b_slot_c_port_d_pvc1.rrd:ifInOctets:...
    DEF:thisnamedescribesvar2=DEF:verylongDEFname=/path/to/directory/router_a_blade_b_slot_c_port_d_pvc1.rrd:ifOutOctets:...


OK, I am exaggerating here but you see what I mean, not?

Other things to check (and there are more benefits than just script size):

CDEF:d=a,UN,0,a,IF,8,*,1024,/

vs

CDEF:b=a,8,*
CDEF:c=b,1024,/
CDEF:d=c,UN,0,c,IF


HTH
-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list