when i change a graph template, graph is broken

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
beltran
Posts: 6
Joined: Tue Mar 21, 2006 6:34 pm

when i change a graph template, graph is broken

Post by beltran »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The DEF statements are missing from the given rrdtool graph statement. This is caused by an erraneous Graph/Graph Template. Please check the Graph from Graph Management and verify, that ds are correctly associated
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest