Alex thanks for your reply
I have also tried changing the variable in something else but the same result

   $opts = array( "--imgformat", "PNG", "--start", "$starttime",
                  "--end", "$endtime",
                  "--width", "$width", "--height", "$height",
                  "DEF:ietsandersa0=$dir/$file:ds0:AVERAGE",
                  "DEF:ietsandersb1=$dir/$file:ds1:AVERAGE",
                  "CDEF:a=ietsandersa0,8,*",
                  "CDEF:b=ietsandersa1,8,*",
                  "COMMENT:           $comment\J",
                  "COMMENT:\J",
                   <cut>

rrd_graph() ERROR: invalid rpn expression in: ietsandersa0,8,*

if i make it like this

   $opts = array( "--imgformat", "PNG", "--start", "$starttime",
                  "--end", "$endtime",
                  "--width", "$width", "--height", "$height",
                  "DEF:a=$dir/$file:ds0:AVERAGE",
                  "DEF:b=$dir/$file:ds1:AVERAGE",
                  "COMMENT:           $comment\J",
                  <cut>

than the script works fine

--
Wiebe Kloosterman

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to