Graph creation still buggy after patch..

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

Moderators: Developers, Moderators

Post Reply
bobross
Posts: 1
Joined: Mon Feb 16, 2004 9:34 pm

Graph creation still buggy after patch..

Post by bobross »

I have applied the patch that was just recently posted due to an issue where my graphs were pulling the same datasource for anything printed on the graph. When my script runs I show data being supplied for each of the data sources, but when the image is rendered all of the cdefs are out of order...see the output below:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CISCO-ATM-PVCS - Traffic - 1/130" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
DEF:a="/var/www/html/cacti/rra/ciscoatmpvcs_traffic_total_365.rrd":Traffic_In:AVERAGE \
DEF:b="/var/www/html/cacti/rra/ciscoatmpvcs_traffic_total_365.rrd":Traffic_Out:AVERAGE \
DEF:c="/var/www/html/cacti/rra/ciscoatmpvcs_traffic_total_365.rrd":Traffic_Total:AVERAGE \
DEF:d="/var/www/html/cacti/rra/ciscoatmpvcs_traffic_total_365.rrd":Traffic_Total:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefc=b,8,* \
CDEF:cdefe=d,8,* \
AREA:cdefa#FFC73B:"Cells In" \
GPRINT:cdefa:AVERAGE:" Current\:%8.2lf %s\n" \
STACK:cdefc#FF6044:"Cells Out" \
GPRINT:cdefc:AVERAGE:" Current\:%8.2lf %s\n" \
STACK:cdefe#FF0000:"Cell Total" \
GPRINT:cdefe:AVERAGE:" Current\:%8.2lf %s\n" \
LINE1:cdefe#00004D:""

I may be mistaken...I appreciate the help..
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The graph output above does not indicate a problem alone. The cdef names will not necessarily be in order, as you have demonstrated to be the case. There could still be a problem, but it does not appear to be evident here.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests