raX wrote:If you click on 'view source' under one of the broken graphs, what is displayed?
-Ian
First of all, here's the source on the graph when everything is ok and working:
/usr/local/rrdtool-1.0.42/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="Switch - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_in:AVERAGE \
DEF:b="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
Then, I go back to the console, and replicate the configuration in my first message and I get red x's for all the graphs. Here is the source after the graphs are broken (this is the same source I have in the lines above, but after the 95th %ile modification):
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
/usr/local/rrdtool-1.0.42/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="Switch - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_in:AVERAGE \
DEF:b="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
HRULE:0#:"95th Percentile\: 0 Mbit"
OK, so what did I miss? I'm kind of a newbie at this so any help would be appreciated.
I think it has something to do with the error regarding the data source, but I didn't see that mentioned in the manual. The only instructions I saw in the manual relating to 95th %ile and how to use it involved the syntax, i.e. "|95:bits:6:current|"
Thank you.