generic-ospf.yaml pass (#20327)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Fotis Voutsas committed
May 22, 2025 at 17:08 UTC
a68c8b478a95a5f4b3196d00315df43d9ee453ce
1 file changed
+42
-170
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_generic-ospf.yaml
+42
-170
@@ -7,16 +7,27 @@ metrics:
7
- OID: 1.3.6.1.2.1.14.10.1.6
8
name: ospfNbrState
9
description: The state of the relationship with this neighbor
10
- unit: "{neighbor}"
10
+ family: OSPF/Neighbors/Status
11
+ unit: "{status}"
12
+ mapping:
13
+ 1: down
14
+ 2: attempt
15
+ 3: init
16
+ 4: twoWay
17
+ 5: exchangeStart
18
+ 6: exchange
19
+ 7: loading
20
+ 8: full
21
- OID: 1.3.6.1.2.1.14.10.1.7
22
name: ospfNbrEvents
23
description: The number of times this neighbor relationship has changed state or an error has occurred
14
- unit: "{change}"
24
+ family: OSPF/Neighbors/Events
25
+ unit: "{event}"
26
- OID: 1.3.6.1.2.1.14.10.1.8
27
name: ospfNbrLsRetransQLen
28
description: The current length of the retransmission queue
18
- unit: "{retransmission_queue}"
19
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
29
+ family: OSPF/Neighbors/Queue
30
+ unit: "{message}"
31
metric_tags:
32
- symbol:
33
OID: 1.3.6.1.2.1.14.10.1.3
@@ -26,39 +37,17 @@ metrics:
37
OID: 1.3.6.1.2.1.14.10.1.1
38
name: ospfNbrIpAddr
39
tag: neighbor_ip
29
- - symbol:
30
- OID: 1.3.6.1.2.1.14.10.1.6
31
- name: ospfNbrState
32
- mapping:
33
- 1: down
34
- 2: attempt
35
- 3: init
36
- 4: two_way
37
- 5: exchange_start
38
- 6: exchange
39
- 7: loading
40
- 8: full
41
- tag: neighbor_state
40
+
41
- MIB: OSPF-MIB
42
table:
44
- OID: 1.3.6.1.2.1.14.10
45
- name: ospfNbrTable
43
+ OID: 1.3.6.1.2.1.14.11
44
+ name: ospfVirtNbrTable
45
symbols:
47
- - name: ospfNbr
48
- constant_value_one: true
49
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
50
- metric_tags:
51
- - symbol:
52
- OID: 1.3.6.1.2.1.14.10.1.3
53
- name: ospfNbrRtrId
54
- tag: neighbor_id
55
- - symbol:
56
- OID: 1.3.6.1.2.1.14.10.1.1
57
- name: ospfNbrIpAddr
58
- tag: neighbor_ip
59
- - symbol:
60
- OID: 1.3.6.1.2.1.14.10.1.6
61
- name: ospfNbrState
46
+ - OID: 1.3.6.1.2.1.14.11.1.5
47
+ name: ospfVirtNbrState
48
+ description: The state of the virtual neighbor relationship
49
+ family: OSPF/Virtual Neighbors/Status
50
+ unit: "{status}"
51
mapping:
52
1: down
53
2: attempt
@@ -68,55 +57,16 @@ metrics:
57
6: exchange
58
7: loading
59
8: full
71
- tag: neighbor_state
72
- - MIB: OSPF-MIB
73
- table:
74
- OID: 1.3.6.1.2.1.14.11
75
- name: ospfVirtNbrTable
76
- symbols:
77
- - OID: 1.3.6.1.2.1.14.11.1.5
78
- name: ospfVirtNbrState
79
- description: The state of the virtual neighbor relationship
80
- unit: "{virtual_neighbor}"
60
- OID: 1.3.6.1.2.1.14.11.1.6
61
name: ospfVirtNbrEvents
62
description: The number of times this virtual link has changed its state or an error has occurred
63
+ family: OSPF/Virtual Neighbors/Events
64
unit: "{change}"
65
- OID: 1.3.6.1.2.1.14.11.1.7
66
name: ospfVirtNbrLsRetransQLen
67
description: The current length of the retransmission queue
88
- unit: "{retransmission_queue}"
89
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
90
- metric_tags:
91
- - symbol:
92
- OID: 1.3.6.1.2.1.14.11.1.3
93
- name: ospfVirtNbrIpAddr
94
- tag: neighbor_ip
95
- - symbol:
96
- OID: 1.3.6.1.2.1.14.11.1.2
97
- name: ospfVirtNbrRtrId
98
- tag: neighbor_id
99
- - symbol:
100
- OID: 1.3.6.1.2.1.14.11.1.5
101
- name: ospfVirtNbrState
102
- mapping:
103
- 1: down
104
- 2: attempt
105
- 3: init
106
- 4: two_way
107
- 5: exchange_start
108
- 6: exchange
109
- 7: loading
110
- 8: full
111
- tag: neighbor_state
112
- - MIB: OSPF-MIB
113
- table:
114
- OID: 1.3.6.1.2.1.14.11
115
- name: ospfVirtNbrTable
116
- symbols:
117
- - name: ospfVirtNbr
118
- constant_value_one: true
119
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
68
+ family: OSPF/Virtual Neighbors/Queue
69
+ unit: "{message}"
70
metric_tags:
71
- symbol:
72
OID: 1.3.6.1.2.1.14.11.1.3
@@ -126,51 +76,17 @@ metrics:
76
OID: 1.3.6.1.2.1.14.11.1.2
77
name: ospfVirtNbrRtrId
78
tag: neighbor_id
129
- - symbol:
130
- OID: 1.3.6.1.2.1.14.11.1.5
131
- name: ospfVirtNbrState
132
- mapping:
133
- 1: down
134
- 2: attempt
135
- 3: init
136
- 4: two_way
137
- 5: exchange_start
138
- 6: exchange
139
- 7: loading
140
- 8: full
141
- tag: neighbor_state
79
+
80
- MIB: OSPF-MIB
81
table:
82
OID: 1.3.6.1.2.1.14.7
83
name: ospfIfTable
84
symbols:
147
- - OID: 1.3.6.1.2.1.14.7.1.8
148
- name: ospfIfRetransInterval
149
- description: The number of seconds between link state advertisement retransmissions for adjacencies belonging to this interface
150
- unit: "s"
85
- OID: 1.3.6.1.2.1.14.7.1.12
86
name: ospfIfState
87
description: The OSPF Interface State
154
- unit: "{interface_state}"
155
- - OID: 1.3.6.1.2.1.14.7.1.21
156
- name: ospfIfLsaCount
157
- description: The total number of link-local link state advertisements in this interface's link-local link state database
158
- unit: "{link_state_advertisement}"
159
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
160
- metric_tags:
161
- - symbol:
162
- OID: 1.3.6.1.2.1.14.7.1.1
163
- name: ospfIfIpAddress
164
- tag: ospf_ip_addr
165
- - symbol:
166
- OID: 1.3.6.1.2.1.14.10.1.3
167
- name: ospfNbrRtrId
168
- table: ospfNbrTable
169
- MIB: OSPF-MIB
170
- tag: neighbor_id
171
- - symbol:
172
- OID: 1.3.6.1.2.1.14.7.1.12
173
- name: ospfIfState
88
+ family: OSPF/Interfaces/Status
89
+ unit: "{status}"
90
mapping:
91
1: down
92
2: loopback
@@ -179,15 +95,11 @@ metrics:
95
5: designated_router
96
6: backup_designated_router
97
7: other_designated_router
182
- tag: if_state
183
- - MIB: OSPF-MIB
184
- table:
185
- OID: 1.3.6.1.2.1.14.7
186
- name: ospfIfTable
187
- symbols:
188
- - name: ospfIf
189
- constant_value_one: true
190
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
98
+ - OID: 1.3.6.1.2.1.14.7.1.21
99
+ name: ospfIfLsaCount
100
+ description: The total number of link-local link state advertisements in this interface's link-local link state database
101
+ family: OSPF/Interfaces/Link State
102
+ unit: "{advertisement}"
103
metric_tags:
104
- symbol:
105
OID: 1.3.6.1.2.1.14.7.1.1
@@ -199,58 +111,25 @@ metrics:
111
table: ospfNbrTable
112
MIB: OSPF-MIB
113
tag: neighbor_id
202
- - symbol:
203
- OID: 1.3.6.1.2.1.14.7.1.12
204
- name: ospfIfState
205
- mapping:
206
- 1: down
207
- 2: loopback
208
- 3: waiting
209
- 4: point_to_point
210
- 5: designated_router
211
- 6: backup_designated_router
212
- 7: other_designated_router
213
- tag: if_state
114
+
115
- MIB: OSPF-MIB
116
table:
117
OID: 1.3.6.1.2.1.14.9
118
name: ospfVirtIfTable
119
symbols:
219
- - OID: 1.3.6.1.2.1.14.9.1.4
220
- name: ospfVirtIfRetransInterval
221
- description: The number of seconds between link state advertisement retransmissions for adjacencies belonging to this virtual interface
222
- unit: "s"
120
- OID: 1.3.6.1.2.1.14.9.1.7
121
name: ospfVirtIfState
122
description: OSPF virtual interface states
226
- unit: "{virtual_interface_state}"
227
- - OID: 1.3.6.1.2.1.14.9.1.12
228
- name: ospfVirtIfLsaCount
229
- description: The total number of link-local link state advertisements in this virtual interface's link-local link state database
230
- unit: "{link_state_advertisement}"
231
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
232
- metric_tags:
233
- - symbol:
234
- OID: 1.3.6.1.2.1.14.11.1.2
235
- name: ospfVirtNbrRtrId
236
- table: ospfVirtNbrTable
237
- MIB: OSPF-MIB
238
- tag: neighbor_id
239
- - symbol:
240
- OID: 1.3.6.1.2.1.14.9.1.7
241
- name: ospfVirtIfState
123
+ family: OSPF/Virtual Interfaces/Status
124
+ unit: "{status}"
125
mapping:
126
1: down
127
4: point_to_point
245
- tag: if_state
246
- - MIB: OSPF-MIB
247
- table:
248
- OID: 1.3.6.1.2.1.14.9
249
- name: ospfVirtIfTable
250
- symbols:
251
- - name: ospfVirtIf
252
- constant_value_one: true
253
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
128
+ - OID: 1.3.6.1.2.1.14.9.1.12
129
+ name: ospfVirtIfLsaCount
130
+ description: The total number of link-local link state advertisements in this virtual interface's link-local link state database
131
+ family: OSPF/Virtual Interfaces/Link State
132
+ unit: "{advertisement}"
133
metric_tags:
134
- symbol:
135
OID: 1.3.6.1.2.1.14.11.1.2
@@ -258,10 +137,3 @@ metrics:
137
table: ospfVirtNbrTable
138
MIB: OSPF-MIB
139
tag: neighbor_id
261
- - symbol:
262
- OID: 1.3.6.1.2.1.14.9.1.7
263
- name: ospfVirtIfState
264
- mapping:
265
- 1: down
266
- 4: point_to_point
267
- tag: if_state