[rrd-users] Re: RRDs::Graph issue

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Aug 18 01:33:01 MEST 2003


On Sun, Aug 17, 2003 at 05:52:38PM -0500, Justin Ellison wrote:

> but the RRDs::graph command is generating the following error:
> 
> 
> ERROR while updating
> /var/www/html/cacti/rra/xxx.xxx.xxx.xxx.1_Ethernet0.rrd: unknown
> function 'SCALAR'
> 
> Here is the related code:
> 
> my ($start,$end) = (time-86400,time-300);
> my ($averages,$xsize,$ysize) = RRDs::graph ("$dbfile.png", \
> 		       "--start=$start", \
> 		       "--end=$end", \
> 		       "DEF:bytesin=$dbfile:traffic_in:AVERAGE", \
> 		       "DEF:bytesout=$dbfile:traffic_out:AVERAGE", \
> 		       "CDEF:bitsin=bytesin,8,*", \
> 		       "CDEF:bitsout=bytesout,8,*", \
> 		       'PRINT:bitsin:LAST:%8.2lf%s', \
> 		       'PRINT:bitsout:LAST:%8.2lf%s'
> 		       );

try printing this in stead of feeding it to rrdtool; there seems
to be something wrong with parameter substitution or so.

HTH
Alex

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