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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to