I'm new to Cacti and I've been trying to add this brocade switch.
I'm getting "error in data query" when I try to create graphs for "Brocade FC Switch", using the xml download in this thread.
This is running on Redhat Linux 4.8 and I have cacti 0.8.7b loaded.
everything seems to be configured but I'm not getting any graphs. Any suggestions?
when I try a "verbose query" of Brocade Fiber Switch Query under Associated Data Queries in the Devices section, I'm getting this error:
------------------------------------------------------------------------------
Data Query Debug Information
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/brocade_interfaces.xml'
+ Error parsing XML file into an array. <--- FAIL
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/brocade_interfaces.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/brocade_interfaces.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/brocade_interfaces.xml'
-------------------------------------------------------------------------------
is this preventing the graphs from being created?
Running the graph management tool in debug mode yields this output:
-------------------------------------------------------------------------------
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DC Production Brocade 4200 FC monitor - port |query_ifIndex|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Units per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortTxFrames:AVERAGE \
DEF:b="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxFrames:AVERAGE \
DEF:c="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxMcasts:AVERAGE \
DEF:d="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortTxC2Frames:AVERAGE \
DEF:e="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxC3Frames:AVERAGE \
DEF:f="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxBadEofs:AVERAGE \
DEF:g="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxCrcs:AVERAGE \
DEF:h="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxEncInFrs:AVERAGE \
DEF:i="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxTooLongs:AVERAGE \
DEF:j="/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd":swFCPortRxTruncs:AVERAGE \
LINE1:a#009F67FF:"TX Frames" \
GPRINT
LAST:" Current\:%8.2lf %s" \
GPRINT
AVERAGE:"Average\:%8.2lf %s" \
GPRINT
MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#6557D0FF:"RX Frames" \
GPRINT
LAST:" Current\:%8.2lf %s" \
GPRINT
AVERAGE:"Average\:%8.2lf %s" \
GPRINT
MAX:"Maximum\:%8.2lf %s\n" \
LINE1:c#AFECEDFF:"RX Multicasts" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:d#0000FFFF:"TX Class2 Frames" \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:e#FFC73BFF:"RX Class3 Frames" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:f#942D0CFF:"RX Bad EOFS" \
GPRINT:f:LAST:" Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Maximum\:%8.2lf %s\n" \
LINE1:g#FF0000FF:"RX CRC Errors" \
GPRINT:g:LAST:" Current\:%8.2lf %s" \
GPRINT:g:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:g:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:h#FF5576FF:"Rx Disparity Frames" \
GPRINT:h:LAST:"Current\:%8.2lf %s" \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:i#008A6DFF:"RX TooLong Frames" \
GPRINT:i:LAST:" Current\:%8.2lf %s" \
GPRINT:i:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:i:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:j#CAF100FF:"RX Truncated Frames" \
GPRINT:j:LAST:"Current\:%8.2lf %s" \
GPRINT:j:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:j:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/html/cacti-0.8.7b/rra/dc_production_brocade_4200_swfcportrxframes_575.rrd': No such file or directory
----------------------------------------------------------------------------------