Brocade Fibre Channel templates.

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

Moderators: Developers, Moderators

Post Reply
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Thanks for this templates!
Works fine on Brocade 200E and 5000!
Panther_1
Posts: 28
Joined: Tue May 08, 2007 8:29 am
Location: NRW, Germany
Contact:

WWN'S ?

Post by Panther_1 »

hy,

is there a way to get the WWN on the graphs which is connected to one port?
Panther_1
Posts: 28
Joined: Tue May 08, 2007 8:29 am
Location: NRW, Germany
Contact:

Post by Panther_1 »

hy,

so some time later I have it running.

What I did?

1. add to brocade_interfaces.xml:
<ifWWN>
<name>Client WWN</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.75.1.2.3.1.10.1</oid>
<oid_suffix>1</oid_suffix>
</ifWWN>
method get cause in method walk oid_suffic didn't work... broken in 0.8.7e

2. fix lib/data_query.php :
line: 213-229

if ($field_array["source"] == "value") {
for ($i=0; $i<sizeof($snmp_indexes); $i++) {
$oid = $field_array["oid"] . "." . $snmp_indexes[$i]["value"];
if (isset($field_array["oid_suffix"])) {
$oid .= "." . $field_array["oid_suffix"];
}
$value = cacti_snmp_get($host["hostname"], $host["snmp_community"], $oid,
$host["snmp_version"], $host["snmp_username"], $host["snmp_password"],
$host["snmp_auth_protocol"], $host["snmp_priv_passphrase"], $host["snmp_priv_protocol"],
$host["snmp_context"], $host["snmp_port"], $host["snmp_timeout"], SNMP_WEBUI);

debug_log_insert("data_query", "Executing SNMP get for data @ '$oid' [value='$value']");

db_execute("replace into host_snmp_cache
(host_id,snmp_query_id,field_name,field_value,snmp_index,oid)
values ('$host_id','$snmp_query_id','$field_name','$value','" . $snmp_indexes[$i]["value"] . "','$oid')");
}
This make oid_suffix work for direction input.

3. repair lib/snmp.php:

line 429-437:
if ((substr_count($string, "Hex-STRING:")) ||
(substr_count($string, "Hex:")) ||
(substr_count($string, "Hex-"))){
/* strip of the 'Hex-STRING:' */
$string = eregi_replace("Hex-STRING: ?", "", $string);
$string = eregi_replace("Hex: ?", "", $string);
$string = eregi_replace("Hex- ?", "", $string);
$string_array = split(" ", $string);
4. Configuration --> Settings --> Visual

set Maximum Field Length to 20

5. Change Graph Templates for example to:

FC monitor - port |query_ifIndex| - |query_ifWWN|

6. renew data

7. Reapply Suggested Names.
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Nicely done, thanks for the how-to!
You should probably let the devs know that oid_suffix for walk-method is broken and that it doesnt work with the input direction: http://bugs.cacti.net/
Panther_1
Posts: 28
Joined: Tue May 08, 2007 8:29 am
Location: NRW, Germany
Contact:

Post by Panther_1 »

The bug is allready known!!
tetu_024
Posts: 49
Joined: Wed Jun 20, 2007 11:26 am

Post by tetu_024 »

Hi I'm Receiving this error when trying to import the template cacti_host_template_brocade_fc_switch.xml

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 24 bytes) in /var/www/cacti/lib/xml.php on line 32


Thanks
Etienne
Panther_1
Posts: 28
Joined: Tue May 08, 2007 8:29 am
Location: NRW, Germany
Contact:

Post by Panther_1 »

hy Etienne,

this is a problem with your local php configuration. Try :

memory_limit 32M

in your php.ini or your apache configuration.
sdog
Posts: 2
Joined: Wed Mar 31, 2010 10:03 am

What graph template?

Post by sdog »

Which graph template should we be using with the Brocade FC Switch template?
sarvaiya
Posts: 1
Joined: Mon Jun 28, 2010 8:41 pm

Brocade

Post by sarvaiya »

I do not get Maimum values in the graph as per the image of the graph attached herewith. Need help
Attachments
brocade..jpg
brocade..jpg (60.03 KiB) Viewed 13706 times
dionvdc
Posts: 46
Joined: Tue Feb 16, 2010 3:54 pm

Re: Brocade

Post by dionvdc »

sarvaiya wrote:I do not get Maimum values in the graph as per the image of the graph attached herewith. Need help
That isn't really related to your template, although you could argue that the abbr. Cur Ave. and Max would "solve"it aswell.

Try changing your font/graph size, because your max values are written outside your graph.
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: Brocade Fibre Channel templates.

Post by animalmother »

Is this template still the best around? Have used it in the past. Can someone with success using it export the latest template?

Would like one that shows frames and bytes per second. Also does anyone have the ports labeled by portName showing up for graph name?

Thanks!
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: WWN connected to port as part of title

Post by animalmother »

For cacti-0.8.7g does all this need to be done? I did add ifWWN to brocade_interfaces.xml, and am thinking it should "just work" if |query_ifWWN|is added to Graph Template Title and made new graph? I can snmpwalk the OID but not getting it in my title.
Panther_1 wrote:hy,

so some time later I have it running.

What I did?

1. add to brocade_interfaces.xml:
<ifWWN>
<name>Client WWN</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.75.1.2.3.1.10.1</oid>
<oid_suffix>1</oid_suffix>
</ifWWN>
method get cause in method walk oid_suffic didn't work... broken in 0.8.7e

2. fix lib/data_query.php :
line: 213-229

if ($field_array["source"] == "value") {
for ($i=0; $i<sizeof($snmp_indexes); $i++) {
$oid = $field_array["oid"] . "." . $snmp_indexes[$i]["value"];
if (isset($field_array["oid_suffix"])) {
$oid .= "." . $field_array["oid_suffix"];
}
$value = cacti_snmp_get($host["hostname"], $host["snmp_community"], $oid,
$host["snmp_version"], $host["snmp_username"], $host["snmp_password"],
$host["snmp_auth_protocol"], $host["snmp_priv_passphrase"], $host["snmp_priv_protocol"],
$host["snmp_context"], $host["snmp_port"], $host["snmp_timeout"], SNMP_WEBUI);

debug_log_insert("data_query", "Executing SNMP get for data @ '$oid' [value='$value']");

db_execute("replace into host_snmp_cache
(host_id,snmp_query_id,field_name,field_value,snmp_index,oid)
values ('$host_id','$snmp_query_id','$field_name','$value','" . $snmp_indexes[$i]["value"] . "','$oid')");
}
This make oid_suffix work for direction input.

3. repair lib/snmp.php:

line 429-437:
if ((substr_count($string, "Hex-STRING:")) ||
(substr_count($string, "Hex:")) ||
(substr_count($string, "Hex-"))){
/* strip of the 'Hex-STRING:' */
$string = eregi_replace("Hex-STRING: ?", "", $string);
$string = eregi_replace("Hex: ?", "", $string);
$string = eregi_replace("Hex- ?", "", $string);
$string_array = split(" ", $string);
4. Configuration --> Settings --> Visual

set Maximum Field Length to 20

5. Change Graph Templates for example to:

FC monitor - port |query_ifIndex| - |query_ifWWN|

6. renew data

7. Reapply Suggested Names.
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: Rx/Tx FC Word size

Post by animalmother »

So this would give Words to Bytes. Would Words to Bits be Word * 8?

or could state that in a CDEF as:

item #1 : Special Data Source: CURRENT_DATA_SOURCE
item #2 : Custom String: 8
item #3 : Operator: *

Craig

sabey wrote:Hi all,

After reading few RFC on FC protocol I found that the FC Word is a 4 character of 8 bit so 32bit but, the FC protocol encapsulate those character into a 10bit format so on the pipe, a 32bit data is 40bit.

Now based on a discussion with Brocade, the portpershow show the amount of data non encapsulated. After a test, the SNMP formula:

RxWOrd + TxWord * 4 give the same results as PortPerfShow.

So I did a new CDEF called FCWordSize with this formula:

item #1 : Special Data Source: CURRENT_DATA_SOURCE
item #2 : Custom String: 4
item #3 : Operator: *

And update the graph to use this CDEF.

:-)
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: Brocade Fibre Channel templates.

Post by animalmother »

Have noticed that a CDEF with Words * 4 does not look accurate against a portpershow. But a Words * 8 appears to match. Does that make sense to anyone?

A portperfshow is in MB.

Checked in the MIB reference for OS 6 and it said that Words * 4 gives Bytes... but that does not seem to match the reality I am seeing via portperfshow. Or doing a DD on a linux machine attached to SAN and adding up the numbers.

Craig
sub_zero
Posts: 5
Joined: Wed Mar 17, 2010 3:37 pm

Re: Brocade Fibre Channel templates.

Post by sub_zero »

Hi guys, does anyone have the template on the Brocade 300? Thanx
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests