@cryptotaxi247 / netdata / commits / 2c4605362

SNMP: barracuda Profiles (#20537)

Co-authored-by: ilyam8 <ilya@netdata.cloud>

Fotis Voutsas committed Jun 29, 2025 at 22:18 UTC 2c4605362c7c388cfaab1a44df994a7a0d99726a
2 files changed +169 -176
src/go/plugin/go.d/config/go.d/snmp.profiles/default/barracuda-cloudgen.yaml
+168 -175
@@ -1,14 +1,16 @@
1 extends:
2 - barracuda.yaml
3
4 -sysobjectid:
5 - - 1.3.6.1.4.1.10704.1.*
6 -
4 metadata:
5 device:
6 fields:
7 type:
11 - value: "firewall"
8 + value: "Firewall"
9 +
10 +sysobjectid:
11 + - 1.3.6.1.4.1.10704.1.*
12 +
13 +# TODO, could find MIB descriptions here, so I wrote the descriptions from the context of the metric name.
14
15 metrics:
16 - MIB: PHION-MIB
@@ -16,36 +18,29 @@ metrics:
18 OID: 1.3.6.1.4.1.10704.1.0
19 name: boxServices
20 symbols:
19 - - name: phion.boxServices
20 - constant_value_one: true
21 - description: " "
22 - unit: "TBD"
23 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
24 - metric_tags:
25 - - symbol:
26 - OID: 1.3.6.1.4.1.10704.1.0.1.1
27 - name: boxServiceName
28 - tag: box_service_name
29 - description: " "
30 - unit: "TBD"
31 - - symbol:
32 - OID: 1.3.6.1.4.1.10704.1.0.1.2
33 - name: boxServiceState
34 - tag: box_service_state
21 + - OID: 1.3.6.1.4.1.10704.1.0.1.2
22 + name: boxServiceState
23 + description: "Box service state"
24 + family: Service/Status
25 + unit: "{status}"
26 mapping:
27 -1: unknown
28 0: stopped
29 1: started
30 2: blocked
31 4: removed
41 - description: " "
42 - unit: "TBD"
32 + metric_tags:
33 + - symbol:
34 + OID: 1.3.6.1.4.1.10704.1.0.1.1
35 + name: boxServiceName
36 + tag: box_service_name
37 - MIB: PHION-MIB
38 symbol:
39 OID: 1.3.6.1.4.1.10704.1.11.0
40 name: phion.vpnUsers
47 - description: "Number of vpn users"
48 - unit: "{Session}"
41 + description: "Number of VPN users"
42 + family: VPN/User/Count
43 + unit: "{user}"
44 - MIB: PHION-MIB
45 table:
46 OID: 1.3.6.1.4.1.10704.1.12
@@ -53,211 +48,209 @@ metrics:
48 symbols:
49 - OID: 1.3.6.1.4.1.10704.1.12.1.2
50 name: phion.trafficShape.rate
56 - metric_type: monotonic_count
57 - description: "Rate in kbit per second"
58 - unit: "kbit/s"
51 + description: Traffic shape rate
52 + family: TrafficShaping/Rate
53 + unit: "bit/s"
54 + scale_factor: 1000
55 - OID: 1.3.6.1.4.1.10704.1.12.1.3
56 name: phion.trafficShape.sessions
61 - metric_type: monotonic_count
57 description: "Number of sessions"
63 - unit: "{Session}"
58 + family: TrafficShaping/Session/Count
59 + unit: "{session}/a"
60 - OID: 1.3.6.1.4.1.10704.1.12.1.4
61 name: phion.trafficShape.class1Total
66 - metric_type: monotonic_count
62 description: "Total bytes for class1"
68 - unit: "By"
63 + family: TrafficShaping/Class1/Traffic/Total
64 + scale_factor: 8
65 + unit: "bit/s"
66 - OID: 1.3.6.1.4.1.10704.1.12.1.5
70 - name: phion.trafficShape.class1Pakets
71 - metric_type: monotonic_count
67 + name: phion.trafficShape.class1Packets
68 description: "Total packets for class1"
73 - unit: "{packet}"
69 + family: TrafficShaping/Class1/Packet/Total
70 + unit: "{packet}/s"
71 - OID: 1.3.6.1.4.1.10704.1.12.1.6
72 name: phion.trafficShape.class1Drop
76 - metric_type: monotonic_count
73 description: "Dropped packets for class1"
78 - unit: "{packet}"
74 + family: TrafficShaping/Class1/Packet/Dropped
75 + unit: "{drop}/s"
76 - OID: 1.3.6.1.4.1.10704.1.12.1.7
77 name: phion.trafficShape.class2Total
81 - metric_type: monotonic_count
78 description: "Total bytes for class2"
83 - unit: "By"
79 + family: TrafficShaping/Class2/Traffic/Total
80 + scale_factor: 8
81 + unit: "bit/s"
82 - OID: 1.3.6.1.4.1.10704.1.12.1.8
83 name: phion.trafficShape.class2Pakets
86 - metric_type: monotonic_count
84 description: "Total packets for class2"
88 - unit: "{packet}"
85 + family: TrafficShaping/Class2/Packet/Total
86 + unit: "{packet}/s"
87 - OID: 1.3.6.1.4.1.10704.1.12.1.9
88 name: phion.trafficShape.class2Drop
91 - metric_type: monotonic_count
89 description: "Dropped packets for class2"
93 - unit: "{packet}"
90 + family: TrafficShaping/Class2/Packet/Dropped
91 + unit: "{drop}/s"
92 - OID: 1.3.6.1.4.1.10704.1.12.1.10
93 name: phion.trafficShape.class3Total
96 - metric_type: monotonic_count
94 description: "Total bytes for class3"
98 - unit: "By"
95 + family: TrafficShaping/Class3/Traffic/Total
96 + scale_factor: 8
97 + unit: "bit/s"
98 - OID: 1.3.6.1.4.1.10704.1.12.1.11
99 name: phion.trafficShape.class3Pakets
101 - metric_type: monotonic_count
100 description: "Total packets for class3"
103 - unit: "{packet}"
101 + family: TrafficShaping/Class3/Packet/Total
102 + unit: "{packet}/s"
103 - OID: 1.3.6.1.4.1.10704.1.12.1.12
104 name: phion.trafficShape.class3Drop
106 - metric_type: monotonic_count
105 description: "Dropped packets for class3"
108 - unit: "{packet}"
106 + family: TrafficShaping/Class3/Packet/Dropped
107 + unit: "{drop}/s"
108 - OID: 1.3.6.1.4.1.10704.1.12.1.13
109 name: phion.trafficShape.noDelayTotal
111 - metric_type: monotonic_count
110 description: "Total bytes for no delay"
113 - unit: "By"
111 + family: TrafficShaping/NoDelay/Traffic/Total
112 + scale_factor: 8
113 + unit: "bit/s"
114 - OID: 1.3.6.1.4.1.10704.1.12.1.14
115 name: phion.trafficShape.noDelayPakets
116 - metric_type: monotonic_count
116 description: "Total packets for no delay"
118 - unit: "{packet}"
117 + family: TrafficShaping/NoDelay/Packet/Total
118 + unit: "{packet}/s"
119 - OID: 1.3.6.1.4.1.10704.1.12.1.15
120 name: phion.trafficShape.noDelayDrop
121 - metric_type: monotonic_count
121 description: "Dropped packets for no delay"
123 - unit: "{packet}"
122 + family: TrafficShaping/NoDelay/Packet/Dropped
123 + unit: "{drop}/s"
124 metric_tags:
125 - symbol:
126 OID: 1.3.6.1.4.1.10704.1.12.1.1
127 name: connectorName
128 tag: connector_name
129 - description: "Name of shaping connector with :IN for inbound and :OUT for outbound"
130 - unit: "TBD"
131 - - MIB: PHION-MIB
132 - table:
133 - OID: 1.3.6.1.4.1.10704.1.4
134 - name: hwSensors
135 - symbols:
136 - - OID: 1.3.6.1.4.1.10704.1.4.1.3
137 - name: phion.hwSensorValue
138 - description: "Sensor value"
139 - unit: "1"
140 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
141 - metric_tags:
142 - - symbol:
143 - OID: 1.3.6.1.4.1.10704.1.4.1.1
144 - name: hwSensorName
145 - tag: hw_sensor_name
146 - description: " "
147 - unit: "TBD"
148 - - symbol:
149 - OID: 1.3.6.1.4.1.10704.1.4.1.2
150 - name: hwSensorType
151 - tag: hw_sensor_type
152 - mapping:
153 - -1: unknown
154 - 0: voltage
155 - 1: fan
156 - 2: temperature
157 - 3: psu-status
158 - description: " "
159 - unit: "TBD"
129 + # - MIB: PHION-MIB
130 + # table:
131 + # OID: 1.3.6.1.4.1.10704.1.4
132 + # name: hwSensors
133 + # symbols:
134 + # - OID: 1.3.6.1.4.1.10704.1.4.1.3
135 + # name: phion.hwSensorValue
136 + # description: "Sensor value"
137 + # unit: "1"
138 + # metric_tags:
139 + # - symbol:
140 + # OID: 1.3.6.1.4.1.10704.1.4.1.1
141 + # name: hwSensorName
142 + # tag: hw_sensor_name
143 + # description: " "
144 + # unit: "TBD"
145 + # - symbol:
146 + # OID: 1.3.6.1.4.1.10704.1.4.1.2
147 + # name: hwSensorType
148 + # tag: hw_sensor_type
149 + # mapping:
150 + # -1: unknown
151 + # 0: voltage
152 + # 1: fan
153 + # 2: temperature
154 + # 3: psu-status
155 + # description: " "
156 + # unit: "TBD"
157 + # TODO need transform here
158 - MIB: PHION-MIB
159 table:
160 OID: 1.3.6.1.4.1.10704.1.6
161 name: vpnTunnels
162 symbols:
165 - - name: phion.vpnTunnels
166 - constant_value_one: true
167 - description: " "
168 - unit: "TBD"
169 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
170 - metric_tags:
171 - - symbol:
172 - OID: 1.3.6.1.4.1.10704.1.6.1.1
173 - name: vpnName
174 - tag: vpn_name
175 - description: " "
176 - unit: "TBD"
177 - - symbol:
178 - OID: 1.3.6.1.4.1.10704.1.6.1.2
179 - name: vpnState
180 - tag: vpn_state
163 + - OID: 1.3.6.1.4.1.10704.1.6.1.2
164 + name: vpnState
165 + description: VPN state
166 + family: VPN/Tunnel/Status
167 + unit: "{status}"
168 mapping:
169 -1: down
170 0: down-disabled
171 1: active
185 - description: " "
186 - unit: "TBD"
187 - - MIB: PHION-MIB
188 - table:
189 - OID: 1.3.6.1.4.1.10704.1.7
190 - name: bgpNeighbors
191 - symbols:
192 - - name: phion.bgpNeighbors
193 - constant_value_one: true
194 - description: " "
195 - unit: "TBD"
196 - metric_tags:
197 - - symbol:
198 - OID: 1.3.6.1.4.1.10704.1.7.1.1
199 - name: bgpNeighborAddress
200 - tag: bgp_neighbor_address
201 - description: " "
202 - unit: "TBD"
203 - - MIB: PHION-MIB
204 - table:
205 - OID: 1.3.6.1.4.1.10704.1.8
206 - name: ospfNeighbors
207 - symbols:
208 - - name: phion.ospfNeighbors
209 - constant_value_one: true
210 - description: " "
211 - unit: "TBD"
212 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
213 - metric_tags:
214 - - symbol:
215 - OID: 1.3.6.1.4.1.10704.1.8.1.1
216 - name: ospfNeighborId
217 - tag: ospf_neighbor_id
218 - description: " "
219 - unit: "TBD"
220 - - symbol:
221 - OID: 1.3.6.1.4.1.10704.1.8.1.2
222 - name: ospfNeighborAddress
223 - tag: ospf_neighbor_address
224 - description: " "
225 - unit: "TBD"
226 - - symbol:
227 - OID: 1.3.6.1.4.1.10704.1.8.1.3
228 - name: ospfNeighborInterface
229 - tag: ospf_neighbor_interface
230 - description: " "
231 - unit: "TBD"
232 - - symbol:
233 - OID: 1.3.6.1.4.1.10704.1.8.1.4
234 - name: ospfNeighborStatus
235 - tag: ospf_neighbor_status
236 - description: " "
237 - unit: "TBD"
238 - - MIB: PHION-MIB
239 - table:
240 - OID: 1.3.6.1.4.1.10704.1.9
241 - name: ripNeighbors
242 - symbols:
243 - - name: phion.ripNeighbors
244 - constant_value_one: true
245 - description: " "
246 - unit: "TBD"
247 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
172 metric_tags:
173 - symbol:
250 - OID: 1.3.6.1.4.1.10704.1.9.1.1
251 - name: ripNeighborAddress
252 - tag: rip_neighbor_address
253 - description: " "
254 - unit: "TBD"
255 - - symbol:
256 - OID: 1.3.6.1.4.1.10704.1.9.1.2
257 - name: ripNeighborState
258 - tag: rip_neighbor_state
259 - description: " "
260 - unit: "TBD"
174 + OID: 1.3.6.1.4.1.10704.1.6.1.1
175 + name: vpnName
176 + tag: vpn_name
177 + # - MIB: PHION-MIB
178 + # table:
179 + # OID: 1.3.6.1.4.1.10704.1.7
180 + # name: bgpNeighbors
181 + # symbols:
182 + # - name: phion.bgpNeighbors
183 + # constant_value_one: true
184 + # description: " "
185 + # unit: "TBD"
186 + # metric_tags:
187 + # - symbol:
188 + # OID: 1.3.6.1.4.1.10704.1.7.1.1
189 + # name: bgpNeighborAddress
190 + # tag: bgp_neighbor_address
191 + # description: " "
192 + # unit: "TBD"
193 + # TODO this does not have a metric.
194 + # - MIB: PHION-MIB
195 + # table:
196 + # OID: 1.3.6.1.4.1.10704.1.8
197 + # name: ospfNeighbors
198 + # symbols:
199 + # - name: phion.ospfNeighbors
200 + # constant_value_one: true
201 + # description: " "
202 + # unit: "TBD"
203 + # # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
204 + # metric_tags:
205 + # - symbol:
206 + # OID: 1.3.6.1.4.1.10704.1.8.1.1
207 + # name: ospfNeighborId
208 + # tag: ospf_neighbor_id
209 + # description: " "
210 + # unit: "TBD"
211 + # - symbol:
212 + # OID: 1.3.6.1.4.1.10704.1.8.1.2
213 + # name: ospfNeighborAddress
214 + # tag: ospf_neighbor_address
215 + # description: " "
216 + # unit: "TBD"
217 + # - symbol:
218 + # OID: 1.3.6.1.4.1.10704.1.8.1.3
219 + # name: ospfNeighborInterface
220 + # tag: ospf_neighbor_interface
221 + # description: " "
222 + # unit: "TBD"
223 + # - symbol:
224 + # OID: 1.3.6.1.4.1.10704.1.8.1.4
225 + # name: ospfNeighborStatus
226 + # tag: ospf_neighbor_status
227 + # description: " "
228 + # unit: "TBD"
229 + # TODO no description of status on MIB
230 + # - MIB: PHION-MIB
231 + # table:
232 + # OID: 1.3.6.1.4.1.10704.1.9
233 + # name: ripNeighbors
234 + # symbols:
235 + # - name: phion.ripNeighbors
236 + # constant_value_one: true
237 + # description: " "
238 + # unit: "TBD"
239 + # # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
240 + # metric_tags:
241 + # - symbol:
242 + # OID: 1.3.6.1.4.1.10704.1.9.1.1
243 + # name: ripNeighborAddress
244 + # tag: rip_neighbor_address
245 + # description: " "
246 + # unit: "TBD"
247 + # - symbol:
248 + # OID: 1.3.6.1.4.1.10704.1.9.1.2
249 + # name: ripNeighborState
250 + # tag: rip_neighbor_state
251 + # description: " "
252 + # unit: "TBD"
253 + # TODO no description of status on MIB
254 # - MIB: PHION-MIB # Removed for lack of clarity on how this table is indexed.
255 # table:
256 # OID: 1.3.6.1.4.1.10704.1.10
src/go/plugin/go.d/config/go.d/snmp.profiles/default/barracuda.yaml
+1 -1
@@ -7,4 +7,4 @@ metadata:
7 device:
8 fields:
9 vendor:
10 - value: "barracuda"
10 + value: "Barracuda"