SNMP: 3com profiles (#20468)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Fotis Voutsas committed
Jun 29, 2025 at 12:59 UTC
5ca07989e779e0fcce7a78d724b636709d3f74d0
2 files changed
+33
-38
src/go/plugin/go.d/config/go.d/snmp.profiles/default/3com-huawei.yaml
+31
-36
@@ -2,78 +2,73 @@ extends:
2
- 3com.yaml
3
4
sysobjectid:
5
- - 1.3.6.1.4.1.43.45.1.2.* # 3Com Huawei Products (a3Com.jv-mib.huawei.hwproducts)
5
+ - 1.3.6.1.4.1.43.45.1.2.* # 3Com Huawei Products (a3Com.jv-mib.huawei.hwproducts)
6
7
metrics:
8
- MIB: A3COM-HUAWEI-LswDEVM-MIB
9
table:
10
- name: hwCpuTable # indexes: hwCpuIndex
10
+ name: hwCpuTable # indexes: hwCpuIndex
11
OID: 1.3.6.1.4.1.43.45.1.6.1.1
12
symbols:
13
- - name: cpu.usage
13
+ - name: hwCpuCostRatePer5Sec
14
OID: 1.3.6.1.4.1.43.45.1.6.1.1.1.3
15
description: Cpu usage percentage
16
+ family: CPU/Usage
17
unit: "%"
18
metric_tags:
18
- - index: 1
19
- tag: cpu
19
+ - tag: cpu_index
20
+ index: 1
21
- MIB: A3COM-HUAWEI-LswDEVM-MIB
22
table:
22
- name: hwMemTable # indexes: hwMemModuleIndex
23
+ name: hwMemTable # indexes: hwMemModuleIndex
24
OID: 1.3.6.1.4.1.43.45.1.6.1.2.1
25
symbols:
25
- - name: memory.total
26
+ - name: hwMemSize
27
OID: 1.3.6.1.4.1.43.45.1.6.1.2.1.1.2
28
description: Total memory size
29
+ family: Memory/Total
30
unit: "By"
29
- - name: memory.free
31
+ - name: hwMemFree
32
OID: 1.3.6.1.4.1.43.45.1.6.1.2.1.1.3
33
description: Free memory size
34
+ family: Memory/Free
35
unit: "By"
36
metric_tags:
34
- - index: 1
35
- tag: mem
37
+ - tag: mem_index
38
+ index: 1
39
- MIB: A3COM-HUAWEI-LswDEVM-MIB
40
table:
38
- name: hwdevMFanStatusTable # indexes: hwDevMFanNum
41
+ name: hwdevMFanStatusTable # indexes: hwDevMFanNum
42
OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.1
43
symbols:
41
- - name: hwdevMFanStatus
42
- constant_value_one: true
43
- description: Fan status indicator
44
- unit: "TBD"
45
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
46
- metric_tags:
47
- - index: 1
48
- tag: fan_num
49
- - symbol:
50
- OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.2
51
- name: hwDevMFanStatus
52
- tag: fan_status
44
+ - OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.2
45
+ name: hwDevMFanStatus
46
+ description: Fan status
47
+ family: Fan/Status
48
+ unit: "{status}"
49
mapping:
50
1: active
51
2: deactive
52
3: not_installed
53
4: unsupported
54
+ metric_tags:
55
+ - tag: fan_index
56
+ index: 1
57
- MIB: A3COM-HUAWEI-LswDEVM-MIB
58
table:
60
- name: hwdevMPowerStatusTable # indexes: hwDevMPowerNum
59
+ name: hwdevMPowerStatusTable # indexes: hwDevMPowerNum
60
OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.2
61
symbols:
63
- - name: hwdevMPowerStatus
64
- constant_value_one: true
65
- description: Power status indicator
66
- unit: "TBD"
67
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
68
- metric_tags:
69
- - index: 1
70
- tag: power_num
71
- - symbol:
72
- OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.2.1.2
73
- name: hwDevMPowerStatus
74
- tag: power_status
62
+ - OID: 1.3.6.1.4.1.43.45.1.2.23.1.9.1.2.1.2
63
+ name: hwDevMPowerStatus
64
+ description: Power status
65
+ family: PowerSupply/Status
66
+ unit: "{status}"
67
mapping:
68
1: active
69
2: deactive
70
3: not_installed
71
4: unsupported
72
+ metric_tags:
73
+ - tag: power_index
74
+ index: 1
src/go/plugin/go.d/config/go.d/snmp.profiles/default/3com.yaml
+2
-2
@@ -6,7 +6,7 @@ metadata:
6
device:
7
fields:
8
vendor:
9
- value: "3com"
9
+ value: "3Com-Huawei"
10
11
sysobjectid:
12
- - 1.3.6.1.4.1.43.1.* # 3Com products
12
+ - 1.3.6.1.4.1.43.1.* # 3Com products