health: apply adapter_raid alarms for every logical/physical device (#10820)
Ilya Mashchenko committed
Mar 19, 2021 at 17:51 UTC
2d8736f14aaa884c8d2ed90501204366c068a964
2 files changed
+8
-6
collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
+4
-2
@@ -23,11 +23,13 @@ ORDER = [
23
24
CHARTS = {
25
'ld_status': {
26
- 'options': [None, 'Status Is Not OK', 'bool', 'logical devices', 'adapter_raid.ld_status', 'line'],
26
+ 'options': [None, 'Status of logical devices (1: Failed or Degraded)', 'bool', 'logical devices',
27
+ 'adapter_raid.ld_status', 'line'],
28
'lines': []
29
},
30
'pd_state': {
30
- 'options': [None, 'State Is Not OK', 'bool', 'physical devices', 'adapter_raid.pd_state', 'line'],
31
+ 'options': [None, 'State of physical devices (1: not Online)', 'bool', 'physical devices',
32
+ 'adapter_raid.pd_state', 'line'],
33
'lines': []
34
},
35
'pd_smart_warnings': {
health/health.d/adaptec_raid.conf
+4
-4
@@ -3,22 +3,22 @@
3
4
template: adapter_raid_ld_status
5
on: adapter_raid.ld_status
6
- lookup: max -5s
6
+ lookup: max -10s foreach *
7
units: bool
8
every: 10s
9
crit: $this > 0
10
delay: down 5m multiplier 1.5 max 1h
11
- info: at least 1 logical device is failed or degraded
11
+ info: logical device status is failed or degraded
12
to: sysadmin
13
14
# physical device state check
15
16
template: adapter_raid_pd_state
17
on: adapter_raid.pd_state
18
- lookup: max -5s
18
+ lookup: max -10s foreach *
19
units: bool
20
every: 10s
21
crit: $this > 0
22
delay: down 5m multiplier 1.5 max 1h
23
- info: at least 1 physical device is not in online state
23
+ info: physical device state is not online
24
to: sysadmin