Hi, i have troubles when i change a graph template from a custom graph template whit this cdef
CURRENT_DATA_SOURCE,8,*,128000,/,100,*
to other custom graph template with this cdef
CURRENT_DATA_SOURCE,8,*,512000,/,100,*
In debug mode i see this messages
RRDTool Says:
Notice: Only variable references should be returned by reference in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 336
Notice: Only variable references should be returned by reference in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 336
ERROR: invalid rpn expression in: a,8,*
Notice: Only variable references should be returned by reference in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 336
Notice: Only variable references should be returned by reference in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 336
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="102uno - Traffic" \
--rigid \
--base=1000 \
--height=150 \
--width=650 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits por segundo" \
--slope-mode \
CDEF:cdefa=a,8,* \
CDEF:cdefc=a,8,*,768000,/,100,* \
CDEF:cdefh=a,8,* \
CDEF:cdefj=a,8,*,768000,/,100,* \
AREA:cdefa#00CF00:"Entrada" \
GPRINT:cdefa:LAST:"Actual\:%8.2lf %s" \
GPRINT:cdefc:LAST:"(%5.2lf %%)" \
GPRINT:cdefa:AVERAGE:"Promedio\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefa:MAX:"Maximo\:%8.2lf %s" \
GPRINT:cdefc:MAX:"(%5.2lf %%)\n" \
LINE1:cdefh#002A97:"Salida" \
GPRINT:cdefh:LAST:" Actual\:%8.2lf %s" \
GPRINT:cdefj:LAST:"(%5.2lf %%)" \
GPRINT:cdefh:AVERAGE:"Promedio\:%8.2lf %s" \
GPRINT:cdefj:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefh:MAX:"Maximo\:%8.2lf %s" \
GPRINT:cdefj:MAX:"(%5.2lf %%)\n" \
COMMENT:"Descarga total\: 0 bytes" \
COMMENT:"Transferencia total\: 0 bytes"
it seems that cacti cant look for the rdd file
But if I see in the console in the menu data source and select the graph i can see in the full path to the RRD file:
<path_rra>/device_traffic_in_54.rrd
and also (many times) i have cleared the poller cache wihtout any results
the only solution that i found is to delete the graph, but this solution delete historical data, isnt it ? and i dont like this way
any sugestions i will appreciate
regards
mario
when i change a graph template, graph is broken
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest