-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerator.yml
104 lines (104 loc) · 2.51 KB
/
generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
modules:
qnap_nas:
walk:
- raidStatus
# - systemFanSpeed
# - systemTemperatureEX
# - cpuUsage
# - cpuTemp
# - cpuIndex
- diskSmartInfo # INTEGER {abnormal(2),warning(1),good(0),error(-1)}
- enclosureSystemTemp
# - sysVolumeFreeSize
# - sysVolumeTotalSize
# - sysUptime
# - sysFanSpeed
# - systemTotalMem
# - systemFreeMem
# - systemUsedMemory
# - systemAvailableMem
# - systemTemperature
# - ifPacketsSentEX
# - ifPacketsReceivedEX
# - ifErrorPacketsEX
- hdTemperature
- hdStatus
- hdSmartInfo
- hdModel
- iops
version: 2
max_repetitions: 5
retries: 3
timeout: 3s
lookups:
- source_indexes: [ifIndexEX]
lookup: ifDescrEX
drop_source_indexes: true
- source_indexes: [hdIndex]
lookup: hdDescr
drop_source_indexes: true
- source_indexes: [diskIndex]
lookup: hdDescr
drop_source_indexes: true
- source_indexes: [hdIndexEx]
lookup: hdDescrEx
drop_source_indexes: true
- source_indexes: [sysVolumeIndex]
lookup: volumeName
drop_source_indexes: true
- source_indexes: [enclosureIndex]
lookup: enclosureName
drop_source_indexes: true
overrides:
enclosureName:
type: DisplayString
hdDescr:
type: DisplayString
hdSmartInfo:
type: DisplayString
hdModel:
type: DisplayString
hdTemperature:
type: DisplayString
regex_extracts:
_celsius:
- regex: '(.*) C/.*'
- value: '$1'
raidStatus:
type: DisplayString
ignore: false
regex_extracts:
"Ready":
- regex: 'Ready'
value: 1
- regex: '.*'
value: 0
systemTotalMem:
regex_extracts:
_mb:
- regex: '(.*) MB'
value: '$1'
systemAvailableMem:
regex_extracts:
_mb:
- regex: '(.*) MB'
value: '$1'
systemFreeMem:
regex_extracts:
_mb:
- regex: '(.*) MB'
value: '$1'
sysVolumeFreeSize:
regex_extracts:
_gb:
- regex: '(.*) GB'
value: '$1'
sysVolumeTotalSize:
regex_extracts:
_gb:
- regex: '(.*) GB'
value: '$1'
hdStatus:
type: EnumAsStateSet
diskSmartInfo:
type: EnumAsStateSet