Brocade Fibre Channel templates.
Moderators: Developers, Moderators
WWN'S ?
hy,
is there a way to get the WWN on the graphs which is connected to one port?
is there a way to get the WWN on the graphs which is connected to one port?
hy,
so some time later I have it running.
What I did?
1. add to brocade_interfaces.xml:
2. fix lib/data_query.php :
line: 213-229
3. repair lib/snmp.php:
line 429-437:
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.
so some time later I have it running.
What I did?
1. add to brocade_interfaces.xml:
method get cause in method walk oid_suffic didn't work... broken in 0.8.7e<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>
2. fix lib/data_query.php :
line: 213-229
This make oid_suffix work for direction input.
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')");
}
3. repair lib/snmp.php:
line 429-437:
4. Configuration --> Settings --> Visualif ((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);
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.
-
- Cacti User
- Posts: 168
- Joined: Fri Sep 12, 2008 2:41 am
- Location: Sweden
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/
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/
What graph template?
Which graph template should we be using with the Brocade FC Switch template?
Re: Brocade
That isn't really related to your template, although you could argue that the abbr. Cur Ave. and Max would "solve"it aswell.sarvaiya wrote:I do not get Maimum values in the graph as per the image of the graph attached herewith. Need help
Try changing your font/graph size, because your max values are written outside your graph.
-
- Posts: 18
- Joined: Tue Jan 25, 2011 7:04 pm
Re: Brocade Fibre Channel templates.
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!
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!
-
- Posts: 18
- Joined: Tue Jan 25, 2011 7:04 pm
Re: WWN connected to port as part of title
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:
method get cause in method walk oid_suffic didn't work... broken in 0.8.7e<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>
2. fix lib/data_query.php :
line: 213-229This make oid_suffix work for direction input.
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')");
}
3. repair lib/snmp.php:
line 429-437:4. Configuration --> Settings --> Visualif ((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);
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.
-
- Posts: 18
- Joined: Tue Jan 25, 2011 7:04 pm
Re: Rx/Tx FC Word size
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
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.
-
- Posts: 18
- Joined: Tue Jan 25, 2011 7:04 pm
Re: Brocade Fibre Channel templates.
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
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
Re: Brocade Fibre Channel templates.
Hi guys, does anyone have the template on the Brocade 300? Thanx
Who is online
Users browsing this forum: No registered users and 0 guests