[rrd-developers] errors using embedded rrdtool

D.Walsh info at daleenterprise.com
Mon Jan 10 03:39:11 MET 2005


I've created a mail stats app, I've been deploying it in different 
environment, seems a problem exists only with the PHP embedded rrdtool, 
I use the following information (hardcoded) as a test and only 
experience a problem when rrdtool is embedded in PHP, any ideas on the 
cause/solution?
Here are the arrays and the resulting errors which only occurs with the 
embedded rrdtool.

Array
(
     [0] => --start=1105196100
     [1] => --end=1105282500
     [2] => --title=Messages Scanned on daleenterprise.com (by day)
     [3] => --width=520
     [4] => --vertical-label=msgs/min
     [5] => DEF:v1=/usr/share/rrdtool/img/1.rrd:hits:AVERAGE
     [6] => CDEF:gv1=v1,UN,0,v1,IF
     [7] => CDEF:gvt1=gv1,86400,*
     [8] => CDEF:gtvt1=gv1,60,*
     [9] => AREA:gtvt1#6A5ACD:Passed
     [10] => GPRINT:gvt1:AVERAGE:%.0lf
     [11] => COMMENT:\n
     [12] => DEF:v2=/usr/share/rrdtool/img/2.rrd:hits:AVERAGE
     [13] => CDEF:gv2=v2,UN,0,v2,IF
     [14] => CDEF:gvt2=gv2,86400,*
     [15] => CDEF:gtvt2=gv2,60,*
     [16] => STACK:gtvt2#ffdd00:Infected
     [17] => GPRINT:gvt2:AVERAGE:%.0lf
     [18] => COMMENT:\n
     [19] => COMMENT:rrdtool v0.1.12
     [20] => COMMENT:Sun Jan  9 09:55:00 2005 \r
)


rrd_graph(): invalid rpn expression 'v1,UN,0,v1,IF'

_______________________________________________________



Array
(
     [0] => --start=1104677700
     [1] => --end=1105282500
     [2] => --title=Messages Scanned on daleenterprise.com (by week)
     [3] => --width=520
     [4] => --vertical-label=msgs/min
     [5] => DEF:v1=/usr/share/rrdtool/img/1.rrd:hits:AVERAGE
     [6] => CDEF:gv1=v1,UN,0,v1,IF
     [7] => CDEF:gvt1=gv1,604800,*
     [8] => CDEF:gtvt1=gv1,60,*
     [9] => AREA:gtvt1#6A5ACD:Passed
     [10] => GPRINT:gvt1:AVERAGE:%.0lf
     [11] => COMMENT:\n
     [12] => DEF:v2=/usr/share/rrdtool/img/2.rrd:hits:AVERAGE
     [13] => CDEF:gv2=v2,UN,0,v2,IF
     [14] => CDEF:gvt2=gv2,604800,*
     [15] => CDEF:gtvt2=gv2,60,*
     [16] => STACK:gtvt2#ffdd00:Infected
     [17] => GPRINT:gvt2:AVERAGE:%.0lf
     [18] => COMMENT:\n
     [19] => COMMENT:rrdtool v0.1.12
     [20] => COMMENT:Sun Jan  9 09:55:00 2005 \r
)

rrd_graph(): invalid rpn expression 'v1,UN,0,v1,IF'

_______________________________________________________

Array
(
     [0] => --start=1102604100
     [1] => --end=1105282500
     [2] => --title=Messages Scanned on daleenterprise.com (by month)
     [3] => --width=520
     [4] => --vertical-label=msgs/min
     [5] => DEF:v1=/usr/share/rrdtool/img/1.rrd:hits:AVERAGE
     [6] => CDEF:gv1=v1,UN,0,v1,IF
     [7] => CDEF:gvt1=gv1,2678400,*
     [8] => CDEF:gtvt1=gv1,60,*
     [9] => AREA:gtvt1#6A5ACD:Passed
     [10] => GPRINT:gvt1:AVERAGE:%.0lf
     [11] => COMMENT:\n
     [12] => DEF:v2=/usr/share/rrdtool/img/2.rrd:hits:AVERAGE
     [13] => CDEF:gv2=v2,UN,0,v2,IF
     [14] => CDEF:gvt2=gv2,2678400,*
     [15] => CDEF:gtvt2=gv2,60,*
     [16] => STACK:gtvt2#ffdd00:Infected
     [17] => GPRINT:gvt2:AVERAGE:%.0lf
     [18] => COMMENT:\n
     [19] => COMMENT:rrdtool v0.1.12
     [20] => COMMENT:Sun Jan  9 09:55:00 2005 \r
)


rrd_graph(): invalid rpn expression 'v1,UN,0,v1,IF'

_______________________________________________________

Array
(
     [0] => --start=1073746500
     [1] => --end=1105282500
     [2] => --title=Messages Scanned on daleenterprise.com (by year)
     [3] => --width=520
     [4] => --vertical-label=msgs/min
     [5] => DEF:v1=/usr/share/rrdtool/img/1.rrd:hits:AVERAGE
     [6] => CDEF:gv1=v1,UN,0,v1,IF
     [7] => CDEF:gvt1=gv1,31536000,*
     [8] => CDEF:gtvt1=gv1,60,*
     [9] => AREA:gtvt1#6A5ACD:Passed
     [10] => GPRINT:gvt1:AVERAGE:%.0lf
     [11] => COMMENT:\n
     [12] => DEF:v2=/usr/share/rrdtool/img/2.rrd:hits:AVERAGE
     [13] => CDEF:gv2=v2,UN,0,v2,IF
     [14] => CDEF:gvt2=gv2,31536000,*
     [15] => CDEF:gtvt2=gv2,60,*
     [16] => STACK:gtvt2#ffdd00:Infected
     [17] => GPRINT:gvt2:AVERAGE:%.0lf
     [18] => COMMENT:\n
     [19] => COMMENT:rrdtool v0.1.12
     [20] => COMMENT:Sun Jan  9 09:55:00 2005 \r
)


rrd_graph(): invalid rpn expression 'v1,UN,0,v1,IF'

_______________________________________________________

On a separate issue I've rewritten the info routine for PHP to be more 
descriptive to include important/relevant information.
(this is not used on any of the machines currently being tested for the 
embeded rrdtool so it is not a consideration or a contributor to the 
problem)

-- Dale

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list