Brocade Fibre Channel templates.

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

corch wrote:Toe_cutter I tried importing your templates in the GUI but I get an error saying:

Error: XML: Hash version does not exist.

Any ideas?
Searching the forum i found this post, http://forums.cacti.net/viewtopic.php?t=7135
Im sorry, but i dont have an older version of the template. Maybe one of the earlier uploaders in this thread?
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Brocade Template on 0.8.7b (ubuntu 8.04)

Post by trungtano »

toe_cutter wrote:
smaug098 wrote:Are these measurements in bytes and the Y axis legend hasn't been updated?
Yes, you are right in your assumption that the measurement is in bytes (elcody02 is using a CDEF for it) but forgot to update the Y-axis and legend.
ledub wrote:could you put the entire template ? host , graph and data ?
Data-, graphtemplates and data query is included in my previous template.
But i forgot to include the fan/temp templates. And thus i created a dataquery for them aswell (they where indexable and didnt need to spam data templates).

So here is an exported Host template (with dependencies) which contains a fixed version of elcody02's templates and a fan/temp-sensors template. Also included are the data_query xml's used.
Exported from 0.8.7d, all patches applied.

Remember that dependencies include any custom RRA/CDEF from my Cacti-system. Please have a look at your own and back them up. In fact, take a whole backup for the sake of it, you never know...
Hi everyone!

I use this template for my San Switch and the RRDTool say:
ERROR: the RRD does not contain an RRA matching the chosen CF

How to find the RRA ?
Pls help me!

Best regards!
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Re: Brocade Template on 0.8.7b (ubuntu 8.04)

Post by toe_cutter »

trungtano wrote:Hi everyone!

I use this template for my San Switch and the RRDTool say:
ERROR: the RRD does not contain an RRA matching the chosen CF

How to find the RRA ?
Pls help me!

Best regards!
Menu item:
Console -> Data Sources -> RRAs

I usually select all Consolidation Functions on my cacti installs.
But for the Brocade templates youll only need MAX, AVERAGE and LAST.
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Brocade Template on 0.8.7b (ubuntu 8.04)

Post by trungtano »

toe_cutter wrote:
trungtano wrote:Hi everyone!

I use this template for my San Switch and the RRDTool say:
ERROR: the RRD does not contain an RRA matching the chosen CF

How to find the RRA ?
Pls help me!

Best regards!
Menu item:
Console -> Data Sources -> RRAs

I usually select all Consolidation Functions on my cacti installs.
But for the Brocade templates youll only need MAX, AVERAGE and LAST.
Thanks you :) and change all the LAST to AVERAGE to display the graph?
I mean, only for the Brocade templates?
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Re: Brocade Template on 0.8.7b (ubuntu 8.04)

Post by toe_cutter »

trungtano wrote:Thanks you :) and change all the LAST to AVERAGE to display the graph?
I mean, only for the Brocade templates?
Im using LAST, you can change it to AVERAGE if you want. Try them both out and see what you get (you might have to recreate the graphs .rrd-files for the RRAs to be created in the rrd)

Read more about MAX,MIN,AVERAGE and LAST here, it gives a good example about what each of them do.
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Brocade Template on 0.8.7b (ubuntu 8.04)

Post by trungtano »

toe_cutter wrote:Im using LAST, you can change it to AVERAGE if you want. Try them both out and see what you get (you might have to recreate the graphs .rrd-files for the RRAs to be created in the rrd)

Read more about MAX,MIN,AVERAGE and LAST here, it gives a good example about what each of them do.
I was change all to AVERAGE and everything seem be ok, Thanks you very much for help! I will try LAST next time!

Best regards!
DHornby
Posts: 8
Joined: Mon Nov 02, 2009 3:18 am

Re: HP Storageworks San Switch 2/16

Post by DHornby »

Rroet wrote:Hi,

Wonderful templates. They work great on the HP Storageworks San Switch 2/32 we have. Including snmp interface statistics for the weathermaps, but I can't seem to get any snmp interface statistics for the Storageworks 2/16 switches we have.

These are the type NA2107. These are HP rebranded Brocade switches 2gbit 16 ports. When I look at creating snmp interface statistic graphs, I only get to see the ethernet port (fei0) and the loopback port (lo0) but none of the fiberchannel ports.

Is this a lack in snmp functionality on the switch devices, or are there different MIBs to adress for these switches?

When I do a verbose query on the snmp interfaces I get this result only: (attached file)
Did you get anywhere with this? I have exactly the same ting on the storageworks 8/20.
kazarkin
Posts: 10
Joined: Sun Nov 08, 2009 3:00 pm

Post by kazarkin »

Hi

All switches are monitoring by template from the 1st page fine.
Did someone try to set up more metrics for this template?
I need to view encoding errors. The parameter is switch has name "Enc Out"

Thanks in advance.
natoe
Posts: 1
Joined: Mon Jan 04, 2010 3:43 am

Post by natoe »

Hi,

first the template from the 1st page works fine, but i get a NAN value for Rx Words and i dont know why. (screenshot). The device is a silkworm 4100 and i use Cacti 0.8.6i.
Any ideas?
Attachments
cacti_Nan.GIF
cacti_Nan.GIF (26.15 KiB) Viewed 8702 times
dionvdc
Posts: 46
Joined: Tue Feb 16, 2010 3:54 pm

Post by dionvdc »

The templates on the first page have an MAX value on some off the DSses.
RX Words being one of them.
Your options are:
Get newer templates from within this thread and start over
Edit your current datatemplate remove devices and start over
Edit your current datatemplate remove devices and rrdtune your MAX values for your DSses.

I did the last one. Maybe its possible to import newer templates and get instant results, but I haven't tried that nor have the time to experiment.
I just fixed it after the graphs and data templates got borked.
zib
Posts: 5
Joined: Wed Mar 10, 2010 10:25 am

Error in Data Query.

Post by zib »

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:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#6557D0FF:"RX Frames" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b: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
----------------------------------------------------------------------------------
Attachments
Screenshot-3.png
Screenshot-3.png (57.15 KiB) Viewed 8073 times
zib
Posts: 5
Joined: Wed Mar 10, 2010 10:25 am

Post by zib »

Tried just copying over the xml file from this thread into ~resources/snmp_queries... still fails.


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/cacti_host_template_brocade_fc_switch2_536.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/cacti_host_template_brocade_fc_switch2_536.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/cacti_host_template_brocade_fc_switch2_536.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.7b/resource/snmp_queries/cacti_host_template_brocade_fc_switch2_536.xml'

..... does this no longer work or am I just missing some obscure configuration step only Cacti Insiders know about?
wasted247
Posts: 5
Joined: Thu Mar 25, 2010 8:27 am

Post by wasted247 »

Hi Zib,

Try renaming the xml files. cut off the last _166 an _436 sections. I had the same problem. guess they are version numbers or something.
zib
Posts: 5
Joined: Wed Mar 10, 2010 10:25 am

Post by zib »

Thank you I think that helped to get me a bit further along. I rebuilt the template,graph/device/graph tree.

I then used rrdtool and the parameters from another post in this thread and I now have graphs.

I do not seem to be getting any errors when I do a query test but the "status" is Unknown. I've tried ping, none, and SNMP and it stays "unknown".

Also, even though I can do an snmpwalk of "." nothing shows up in the graphs for the brocade.

Is the unknown status perhaps pointing to a problem somewhere?
thenrique
Posts: 5
Joined: Sun Dec 20, 2009 3:04 pm

Post by thenrique »

I have a problem with graphics, after i have changed the graphic title the graphic is not updated anymore.

The output of snmp query show te values but is not inserted in graphic.

03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxBadEofs, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.25.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxTruncs, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.23.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxTooLongs, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.24.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxCrcs, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.22.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxEncInFrs, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.26.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxC3Frames, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.16.11, output: 931018
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxMcasts, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.18.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortTxC2Frames, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.15.11, output: 0
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxFrames, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.14.11, output: 931018
03/31/2010 12:47:04 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortRxWords, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.12.11, output: 331286140
03/31/2010 12:47:05 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortTxFrames, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.13.11, output: 850844
03/31/2010 12:47:05 PM - CMDPHP: Poller[0] Host[10] DS[127] SNMP: v1: 10.16.15.32, dsname: swFCPortTxWords, oid: .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.11.11, output: 329288004

Anybody knows how to fix it ?[/img]
Attachments
Graphic !
Graphic !
graphic.png (1.74 MiB) Viewed 7773 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests