|
|
| Author |
Message |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Sat Feb 12, 2005 3:15 pm Post subject: |
|
|
Christofer,
I veriefied with snmpwalk, everything is ok. Now I'm analyzing rrd's and cacti.log at home. The rrdupdates look like 02/11/2005 09:35:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortTxWords:swFCPortRxC3Frames:swFCPortRxMcasts:swFCPortRxEncInFrs:swFCPortRxCrcs:swFCPortRxTruncs:swFCPortRxWords:swFCPortTxC2Frames:swFCPortRxFrames:swFCPortRxTooLongs:swFCPortRxBadEofs:swFCPortTxFrames 1108110901:1490476872:4197003763:0:4:0:0:3005295570:27:4197003655:0:0:2497982949
02/11/2005 09:40:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortTxWords:swFCPortRxC3Frames:swFCPortRxMcasts:swFCPortRxCrcs:swFCPortRxEncInFrs:swFCPortRxTruncs:swFCPortTxC2Frames:swFCPortRxWords:swFCPortRxFrames:swFCPortRxTooLongs:swFCPortRxBadEofs:swFCPortTxFrames 1108111201:1583088292:4197470013:0:0:4:0:27:3185401308:4197469777:0:0:2498246267
02/11/2005 09:45:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortTxFrames:swFCPortRxBadEofs:swFCPortRxTooLongs:swFCPortRxFrames:swFCPortTxWords:swFCPortRxC3Frames:swFCPortRxMcasts:swFCPortRxEncInFrs:swFCPortRxCrcs:swFCPortRxTruncs:swFCPortRxWords:swFCPortTxC2Frames 1108111501:2498527909:0:0:4197841157:1691993378:4197841206:0:4:0:0:3320571586:27
02/11/2005 09:50:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortTxWords:swFCPortRxC3Frames:swFCPortRxMcasts:swFCPortRxEncInFrs:swFCPortRxCrcs:swFCPortRxTruncs:swFCPortRxWords:swFCPortTxC2Frames:swFCPortRxFrames:swFCPortRxTooLongs:swFCPortRxBadEofs:swFCPortTxFrames 1108111800:1818458999:4198448263:0:4:0:0:3566896118:27:4198448020:0:0:2498863089
02/11/2005 09:55:11 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortRxBadEofs:swFCPortTxFrames:swFCPortRxC3Frames:swFCPortTxWords:swFCPortRxTooLongs:swFCPortRxFrames:swFCPortTxC2Frames:swFCPortRxWords:swFCPortRxTruncs:swFCPortRxCrcs:swFCPortRxEncInFrs:swFCPortRxMcasts 1108112101:0:2499135837:4198952978:1916897556:0:4198952882:27:3767577716:0:0:4:0
02/11/2005 10:00:12 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6c/rra/fc_1_13_swfcporttxframes_967.rrd --template swFCPortRxCrcs:swFCPortRxTruncs:swFCPortRxWords:swFCPortTxC2Frames:swFCPortRxFrames:swFCPortRxTooLongs:swFCPortRxBadEofs:swFCPortTxFrames:swFCPortRxEncInFrs:swFCPortRxMcasts:swFCPortRxC3Frames:swFCPortTxWords 1108112401:0:0:3954622221:27:4199417959:0:0:2499367925:4:0:4199418421:1998330514
Apart from the strange mixing of the ds sequence, eveything seems to be ok.
So I had a look at the snmp get in the log. They seem to be alright again. For RxWords they read 09:35:09 swFCPortRxWords, 3005295570
09:40:09 swFCPortRxWords, 3185401308
09:45:08 swFCPortRxWords, 3320571586
09:50:09 swFCPortRxWords, 3566896118
09:55:09 swFCPortRxWords, 3767577716
10:00:10 swFCPortRxWords, 3954622221 . At the moment, I'm struggeling with rrdtool to fetch the data and have a look.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Sat Feb 12, 2005 4:40 pm Post subject: |
|
|
Christofer,
I tried to rebuild the port rrd from scratch and defined DS max and min as U: | Code: | rrdtool create fc1_967.rrd --start 1108110900 \
DS:swFCPortTxWords:COUNTER:600:U:U \
DS:swFCPortRxWords:COUNTER:600:U:U \
DS:swFCPortTxFrames:COUNTER:600:U:U \
DS:swFCPortRxFrames:COUNTER:600:U:U \
DS:swFCPortTxC2Frames:COUNTER:600:U:U \
DS:swFCPortRxC3Frames:COUNTER:600:U:U \
DS:swFCPortRxMcasts:COUNTER:600:U:U \
DS:swFCPortRxEncInFrs:COUNTER:600:U:U \
DS:swFCPortRxCrcs:COUNTER:600:U:U \
DS:swFCPortRxTruncs:COUNTER:600:U:U \
DS:swFCPortRxTooLongs:COUNTER:600:U:U \
DS:swFCPortRxBadEofs:COUNTER:600:U:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 |
Now I replayed the rrdtool update statements grepped from the cacti.log. With rrdtool xport I dumped one single DS swFCPortRxWords. Everything was ok.
Looking and the brocade xml data template, I saw that nearly all DS had a min of 0 and a max of 100. So I defined another rrd | Code: | rrdtool create fc2_967.rrd --start 1108110900 \
DS:swFCPortTxWords:COUNTER:600:0:100 \
DS:swFCPortRxWords:COUNTER:600:0:100 \
DS:swFCPortTxFrames:COUNTER:600:0:100 \
DS:swFCPortRxFrames:COUNTER:600:0:100 \
DS:swFCPortTxC2Frames:COUNTER:600:0:100 \
DS:swFCPortRxC3Frames:COUNTER:600:0:100 \
DS:swFCPortRxMcasts:COUNTER:600:0:100 \
DS:swFCPortRxEncInFrs:COUNTER:600:0:100 \
DS:swFCPortRxCrcs:COUNTER:600:0:100 \
DS:swFCPortRxTruncs:COUNTER:600:0:100 \
DS:swFCPortRxTooLongs:COUNTER:600:0:100 \
DS:swFCPortRxBadEofs:COUNTER:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 | with those min:max definitions. The rrdtool update with same values was ok, again. But now the dump showed all "NaN"!
So I thing this may be the problem cause. Will try to "rrdtool tune" my productive rrds on monday.
Cheers
Reinhard
|
|
| Back to top |
|
 |
royce Cacti User
Joined: 29 Dec 2004 Posts: 79 Location: Sweden
|
Posted: Mon Feb 14, 2005 1:52 am Post subject: |
|
|
Hm...
So setting Maximum Value to some higher than 100. or 0 might help us out? I cant really tell. Please investigate further, and I'll do same here.
Christofer
|
|
| Back to top |
|
 |
dimi
Joined: 10 Feb 2005 Posts: 4 Location: Germany
|
Posted: Mon Feb 14, 2005 6:38 am Post subject: Port names |
|
|
Hi,
I tried to change the 'data queries' to get the names of the Ports in the title, but I'm not shure what the right values are.
I tried 'query_ifDescription' but that looks like it doesn't work.
Can you help me to get the names? In the 'new graphs' window there you can see the Discription of the port. But how do I get this name in the port title?
Thanks
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Mon Feb 14, 2005 11:49 am Post subject: |
|
|
| royce wrote: | Hm...
So setting Maximum Value to some higher than 100. or 0 might help us out? I cant really tell. Please investigate further, ... |
Christofer,
back in the office again. Just converted all my 192 brocade rrds: | Code: | | rrdtool tune <dsn> --maximum <ds1>:U --maximum <ds2>:U ... | for all ds. Here's the result (see graph below, the blue areas!).
I checked all Ports on all switches: no more NaN's. So everything seems to be fine. Now will check the Data Templates. Only swFCPortTxWords has no maximum defined, all other ds have a max value of 100 (which is the default, if you create a Data Template DS).
Thank you again for your templates.
Reinhard
| Description: |
| Now Port 1 reports even RxWords! |
|
| Filesize: |
16.44 KB |
| Viewed: |
7891 Time(s) |

|
|
|
| Back to top |
|
 |
sabey
Joined: 09 Nov 2004 Posts: 11
|
Posted: Wed Feb 16, 2005 10:07 am Post subject: |
|
|
Hey,
I have the same issue with some value in the graph that are NaN like the RxWords. I don't understand exactly what you did LVM, How to a fix that ?
Thanks
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Wed Feb 16, 2005 11:12 am Post subject: |
|
|
| sabey wrote: | | How to a fix that ? |
Ok, sabey,
here we go:
| Code: | rrdtool tune fc2_967.rrd \
--maximum swFCPortTxWords:U \
--maximum swFCPortRxWords:U \
--maximum swFCPortTxFrames:U \
--maximum swFCPortRxFrames:U \
--maximum swFCPortTxC2Frames:U \
--maximum swFCPortRxC3Frames:U \
--maximum swFCPortRxMcasts:U \
--maximum swFCPortRxEncInFrs:U \
--maximum swFCPortRxCrcs:U \
--maximum swFCPortRxTruncs:U \
--maximum swFCPortRxTooLongs:U \
--maximum swFCPortRxBadEofs:U |
Of course, you have to replace fc2_967.rrd with the name of your own rrd file (to be found in <path_cacti>/rra). You have to repeat this for each rrd file.
Then you have to modify the data template Brocade RC DataTemplate. Each data source item (e.g. swFCPortRxBadEofs should have the value 0 as Maximum Value. This ensures, that each newly defined Switch will have correct Maximum Values.
More info: man rrdtune
hth
|
|
| Back to top |
|
 |
sabey
Joined: 09 Nov 2004 Posts: 11
|
Posted: Wed Feb 16, 2005 12:57 pm Post subject: Thanks a other question |
|
|
Thank for the solution! Work fine now. Do you have an idea what is the relationship bettween the SNMP metric (RxWords/TxWords, RxFrames, TxFrames) and the PortPerfShow ? I have a port that run steady at over 15MB/s and the graph only show average of RxWords 4.47MB/s. and 0 for TxWords and few Kbs for TX/RX Frames.
Thanks
|
|
| Back to top |
|
 |
sabey
Joined: 09 Nov 2004 Posts: 11
|
Posted: Mon Feb 21, 2005 8:11 am Post subject: Performance stats from MIB |
|
|
Just to update that a bit, I found that on the Brocade web site:
Transmission word: A string of four consecutive transmission characters.
Does that mean the 1 Rx or Tx Words mean 4 x 8 bit = 32bits ?
Also, someone have more information about the Rx/Tx Frames ? What's that mean ?
Thanks
|
|
| Back to top |
|
 |
royce Cacti User
Joined: 29 Dec 2004 Posts: 79 Location: Sweden
|
Posted: Tue Feb 22, 2005 4:35 pm Post subject: |
|
|
Hm.
That makes sense. Let's investigate this further.
Anyway. I've upgraded the templates with the max value '0'.
I'm about to write indexed snmp-queries for fan and temp sensors later on. Or if someone wants to contribute with these would be nice.
It seems that the code within the switch-software have pre-defined sensor counters from factory. If the sensors isn't present it'll return a negative value. As I dont know how to sort those sensors out from a basic indexed snmp query I'm afraid i have to write a perl script that filter these sensors out.
Ideas?
Christofer
|
|
| Back to top |
|
 |
sabey
Joined: 09 Nov 2004 Posts: 11
|
Posted: Fri Feb 25, 2005 6:53 am Post subject: Rx/Tx FC Word size |
|
|
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.
|
|
| Back to top |
|
 |
royce Cacti User
Joined: 29 Dec 2004 Posts: 79 Location: Sweden
|
Posted: Fri Feb 25, 2005 1:50 pm Post subject: |
|
|
Hm. That sould make sense. I get values around 15G now. Our brocades run at 2gig... strange. what does your graphs tell?
Christofer
|
|
| Back to top |
|
 |
ulasyuksel
Joined: 08 Apr 2005 Posts: 5
|
Posted: Fri Apr 08, 2005 8:02 am Post subject: word means |
|
|
As far as I know..
I am using a formula.
number of words / 262144 MB/sec
262144=1024*1024 / 4 means 1 word is four bytes
|
|
| Back to top |
|
 |
Suzumushi
Joined: 12 May 2005 Posts: 8
|
Posted: Thu May 12, 2005 9:26 am Post subject: ? |
|
|
has anyone something similar but for Qlogic FC switches ?
meaby only mib tree can be edited...
aby ideas or help ?
best regards
|
|
| Back to top |
|
 |
jbiel
Joined: 05 May 2005 Posts: 12
|
Posted: Thu May 12, 2005 10:51 am Post subject: |
|
|
Both templates import into 0.8.6d fine, but when I go to add the device I get this error when I click save:
Warning: Variable passed to each() is not an array or object in /var/apache/htdocs/cacti/lib/data_query.php on line 490
Warning: Cannot modify header information - headers already sent by (output started at /var/apache/htdocs/cacti/lib/data_query.php:490) in /var/apache/htdocs/cacti/host.php on line 121
BUT, I can click the back button and go to Devices list and the device is there listed fine.
I also do get:
Data Query [Brocade FC Switch] Reload Associated Query
Error in data query.
When I attempt to create graphs for the hosts.
Any help would be great. These are Silkworm 2400 switches.
|
|
| Back to top |
|
 |
|