SNMP: brocade profiles (#20546)
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Fotis Voutsas committed
Jun 29, 2025 at 22:26 UTC
a69a035d956c5fc5f3627434c9cf7e5fddef076e
2 files changed
+92
-80
src/go/plugin/go.d/config/go.d/snmp.profiles/default/brocade-fc-switch.yaml
+91
-79
@@ -1,5 +1,12 @@
1
extends:
2
- brocade.yaml
3
+
4
+metadata:
5
+ device:
6
+ fields:
7
+ type:
8
+ value: "Switch"
9
+
10
sysobjectid:
11
- 1.3.6.1.4.1.1588.2.1.1.*
12
- 1.3.6.1.4.1.1588.2.1.1.32
@@ -17,94 +24,84 @@ sysobjectid:
24
- 1.3.6.1.4.1.1588.2.1.1.120
25
- 1.3.6.1.4.1.1588.2.1.1.133
26
- 1.3.6.1.4.1.1588.2.1.3
20
-metadata:
21
- device:
22
- fields:
23
- type:
24
- value: "switch"
27
+
28
metrics:
29
- MIB: RESOURCE-MIB
30
symbol:
31
OID: 1.3.6.1.4.1.1588.2.1.1.1.26.1.0
32
name: cpu.usage
30
- description: System's cpu usage.
33
+ description: System's cpu usage
34
+ family: CPU/Usage
35
unit: "%"
36
- MIB: RESOURCE-MIB
37
symbol:
38
OID: 1.3.6.1.4.1.1588.2.1.1.1.26.6.0
39
name: memory.usage
36
- description: System's memory usage.
40
+ description: System's memory usage
41
+ family: Memory/Usage
42
unit: "%"
43
- MIB: FIBRE-CHANNEL-FE-MIB
44
table:
45
OID: 1.3.6.1.2.1.75.1.2.1
41
- name: fcFxPortStatusTable # fcFxPortStatusEntry AUGMENTS { fcFxPortEntry }
46
+ name: fcFxPortStatusTable # fcFxPortStatusEntry AUGMENTS { fcFxPortEntry }
47
symbols:
43
- - name: fcFxPortStatus
44
- constant_value_one: true
45
- description: Operational status of the FxPort.
48
+ - name: fcFxPortBbCreditAvailable
49
+ OID: 1.3.6.1.2.1.75.1.2.1.1.2
50
+ description: Buffers currently available for receiving frames from the attached port in the buffer-to-buffer flow control
51
+ family: FibreChannel/FxPort/Buffer/Available
52
+ unit: "{buffer}"
53
+ - OID: 1.3.6.1.2.1.75.1.2.1.1.3
54
+ name: fcFxPortOperMode
55
+ description: Operational mode of the FxPort
56
+ family: FibreChannel/FxPort/Operational/Mode
57
unit: "{status}"
47
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
48
- metric_tags:
49
- - index: 1 # fcFeModuleIndex is index #1 of fcFxPortEntry
50
- tag: fc_fe_module_index
51
- - index: 2 # fcFxPortIndex is index #2 of fcFxPortEntry
52
- tag: fc_fx_port_index
53
- - symbol:
54
- OID: 1.3.6.1.2.1.75.1.2.1.1.3
55
- name: fcFxPortOperMode
56
- description: Operational mode of the FxPort.
57
- unit: "{mode}"
58
- tag: fc_fx_port_oper_mode
58
mapping:
59
1: unknown
60
2: f_port
61
3: fl_port
63
- - symbol:
64
- OID: 1.3.6.1.2.1.75.1.2.1.1.4
65
- name: fcFxPortAdminMode
66
- description: Desired operational mode of the FxPort.
67
- unit: "{mode}"
68
- tag: fc_fx_port_admin_mode
62
+ - OID: 1.3.6.1.2.1.75.1.2.1.1.4
63
+ name: fcFxPortAdminMode
64
+ description: Desired operational mode of the FxPort
65
+ unit: "{status}"
66
+ family: FibreChannel/FxPort/Admin/Mode
67
mapping:
68
2: f_port
69
3: fl_port
70
+ metric_tags:
71
+ - index: 1 # fcFeModuleIndex is index #1 of fcFxPortEntry
72
+ tag: fc_fe_module_index
73
+ - index: 2 # fcFxPortIndex is index #2 of fcFxPortEntry
74
+ tag: fc_fx_port_index
75
- MIB: FIBRE-CHANNEL-FE-MIB
76
table:
77
OID: 1.3.6.1.2.1.75.1.2.2
75
- name: fcFxPortPhysTable # fcFxPortStatusEntry AUGMENTS { fcFxPortEntry }
78
+ name: fcFxPortPhysTable # fcFxPortStatusEntry AUGMENTS { fcFxPortEntry }
79
symbols:
77
- - name: fcFxPortPhys
78
- constant_value_one: true
79
- description: Physical status of the FxPort.
80
+ - OID: 1.3.6.1.2.1.75.1.2.2.1.1
81
+ name: fcFxPortPhysAdminStatus
82
+ description: Desired state of the FxPort
83
+ family: FibreChannel/FxPort/Physical/Admin/Status
84
unit: "{status}"
81
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
82
- metric_tags:
83
- - index: 1 # fcFeModuleIndex is index #1 of fcFxPortEntry
84
- tag: fc_fe_module_index
85
- - index: 2 # fcFxPortIndex is index #2 of fcFxPortEntry
86
- tag: fc_fx_port_index
87
- - symbol:
88
- OID: 1.3.6.1.2.1.75.1.2.2.1.1
89
- name: fcFxPortPhysAdminStatus
90
- description: Desired state of the FxPort.
91
- unit: "{state}"
92
- tag: fc_fx_port_phys_admin_status
85
mapping:
86
1: online
87
2: offline
88
3: testing
97
- - symbol:
98
- OID: 1.3.6.1.2.1.75.1.2.2.1.2
99
- name: fcFxPortPhysOperStatus
100
- description: Current operational status of the FxPort.
101
- unit: "{status}"
102
- tag: fc_fx_port_phys_oper_status
89
+ - OID: 1.3.6.1.2.1.75.1.2.2.1.2
90
+ name: fcFxPortPhysOperStatus
91
+ description: Current operational status of the FxPort
92
+ family: FibreChannel/FxPort/Physical/Operational/Status
93
+ unit: "{status}"
94
mapping:
95
1: online
96
2: offline
97
3: testing
98
4: link_failure
99
+ metric_tags:
100
+ - index: 1 # fcFeModuleIndex is index #1 of fcFxPortEntry
101
+ tag: fc_fe_module_index
102
+ - index: 2 # fcFxPortIndex is index #2 of fcFxPortEntry
103
+ tag: fc_fx_port_index
104
+
105
- MIB: SW-MIB
106
table:
107
name: swFCPortTable
@@ -113,78 +110,93 @@ metrics:
110
- name: swFCPortTxFrames
111
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.13
112
metric_type: monotonic_count
116
- description: Number of Fibre Channel frames transmitted by the port.
117
- unit: "{frame}"
113
+ description: Number of Fibre Channel frames transmitted by the port
114
+ family: FibreChannel/Port/Frame/Out
115
+ unit: "{frame}/s"
116
- name: swFCPortRxFrames
117
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.14
118
metric_type: monotonic_count
121
- description: Number of Fibre Channel frames received by the port.
122
- unit: "{frame}"
119
+ description: Number of Fibre Channel frames received by the port
120
+ family: FibreChannel/Port/Frame/In
121
+ unit: "{frame}/s"
122
- name: swFCPortRxC2Frames
123
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.15
124
metric_type: monotonic_count
126
- description: Number of Class 2 frames received by the port.
127
- unit: "{frame}"
125
+ description: Number of Class 2 frames received by the port
126
+ family: FibreChannel/Port/Frame/Class2/In
127
+ unit: "{frame}/s"
128
- name: swFCPortRxC3Frames
129
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.16
130
metric_type: monotonic_count
131
- description: Number of Class 3 frames received by the port.
132
- unit: "{frame}"
131
+ description: Number of Class 3 frames received by the port
132
+ family: FibreChannel/Port/Frame/Class3/In
133
+ unit: "{frame}/s"
134
- name: swFCPortRxLCs
135
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.17
136
metric_type: monotonic_count
136
- description: Number of Link Control frames received by the port.
137
- unit: "{frame}"
137
+ description: Number of Link Control frames received by the port
138
+ family: FibreChannel/Port/Frame/LinkControl/In
139
+ unit: "{frame}/s"
140
- name: swFCPortTooManyRdys
141
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.19
142
metric_type: monotonic_count
141
- description: Number of times when RDYs exceeds the frames received.
142
- unit: "{count}"
143
+ description: Number of times when RDYs exceeds the frames received
144
+ family: FibreChannel/Port/RDY/Exceeded
145
+ unit: "{time}/s"
146
- name: swFCPortNoTxCredits
147
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.20
148
metric_type: monotonic_count
146
- description: Number of times when the transmit credit has reached zero.
147
- unit: "{count}"
149
+ description: Number of times when the transmit credit has reached zero
150
+ family: FibreChannel/Port/Credit/Exhausted
151
+ unit: "{time}/s"
152
- name: swFCPortRxEncInFrs
153
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.21
154
metric_type: monotonic_count
155
description: Number of encoding or disparity errors inside frames received.
152
- unit: "{error}"
156
+ family: FibreChannel/Port/Error/Encoding/InFrame
157
+ unit: "{error}/s"
158
- name: swFCPortRxCrcs
159
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.22
160
metric_type: monotonic_count
156
- description: Number of CRC errors detected for frames received.
157
- unit: "{error}"
161
+ description: Number of CRC errors detected for frames received
162
+ family: FibreChannel/Port/Error/CRC
163
+ unit: "{error}/s"
164
- name: swFCPortRcTruncs
165
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.23
166
metric_type: monotonic_count
161
- description: Number of truncated frames received by the port.
162
- unit: "{frame}"
167
+ description: Number of truncated frames received by the port
168
+ family: FibreChannel/Port/Frame/Truncated/In
169
+ unit: "{frame}/s"
170
- name: swFCPortRxTooLongs
171
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.24
172
metric_type: monotonic_count
166
- description: Number of received frames that are too long.
167
- unit: "{frame}"
173
+ description: Number of received frames that are too long
174
+ family: FibreChannel/Port/Frame/TooLong/In
175
+ unit: "{frame}/s"
176
- name: swFCPortRxBadEofs
177
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.25
178
metric_type: monotonic_count
171
- description: Number of received frames with bad EOF delimiter.
172
- unit: "{frame}"
179
+ description: Number of received frames with bad EOF delimiter
180
+ family: FibreChannel/Port/Error/BadEOF
181
+ unit: "{frame}/s"
182
- name: swFCPortRxEncOutFrs
183
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.26
184
metric_type: monotonic_count
176
- description: Number of encoding or disparity errors outside frames received.
177
- unit: "{error}"
185
+ description: Number of encoding or disparity errors outside frames received
186
+ family: FibreChannel/Port/Error/Encoding/OutFrame
187
+ unit: "{error}/s"
188
- name: swFCPortRxBadOs
189
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.27
190
metric_type: monotonic_count
181
- description: Number of invalid Ordered Sets received.
182
- unit: "{error}"
191
+ description: Number of invalid Ordered Sets received
192
+ family: FibreChannel/Port/Error/InvalidOrderedSet
193
+ unit: "{error}/s"
194
- name: swFCPortC3Discards
195
OID: 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.28
196
metric_type: monotonic_count
197
description: Number of Class 3 frames discarded by the port.
187
- unit: "{frame}"
198
+ family: FibreChannel/Port/Frame/Class3/Discarded
199
+ unit: "{frame}/s"
200
metric_tags:
201
- symbol:
202
name: swFCPortName
src/go/plugin/go.d/config/go.d/snmp.profiles/default/brocade.yaml
+1
-1
@@ -6,4 +6,4 @@ metadata:
6
device:
7
fields:
8
vendor:
9
- value: "brocade"
9
+ value: "Brocade"