[rrd-users] Re: Trouble with RRDs::graph

Tobias Oetiker oetiker at ee.ethz.ch
Fri Jan 7 07:29:38 MET 2000


Yesterday you sent me mail regarding [rrd-users] Trouble with RRDs::graph:

*> Hi!
*> 
*> I'm getting a segmentation fault with the following piece of code:
*> 
*>                                                 my(@args) = (
*>                                                         "/dev/null",
*> 
*> "DEF:ds0=$rrdfile:ds$dsnum:AVERAGE",
*> 
*> "DEF:ds1=$rrdfile:ds$dsnum:MAX",
*> 
*> "CDEF:sds0=ds0,$scale",
*> 
*> "CDEF:sds1=ds1,$scale",
*> 
*> "PRINT:sds0:AVERAGE:\%f",
*> 
*> "PRINT:sds1:MAX:\%f" );
*>                                                ($mmax, undef, undef) =
*> RRDs::graph @args;
*> 
*> Using debug I found that it seg faults when it calls RRDs::graph, though
*> if I comment the line out; any of the calls later in the script work
*> fine.

hi M@,

would be able to produce a bit of code which first sets up the RRD, then
updates it with data and then creates the graph and segfaults ... 

best would be a shell script ... perl will work as well ...

thanks very much
tobi

PS Please use rrdtool-1.0.9 for your tests ... The code above would not be
allowed in 1.0.9 ... you would be required to use %5.2lf or something like
it ... 


cheers
tobi
*> 
*> Any ideas at all would be extremely helpful...
*> 
*> M@ Knudson
*> Network Operations
*> Epoch Networks, Inc.
*> 
*> --
*> 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
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

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



More information about the rrd-users mailing list