summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2021-03-19 17:51:52 +0300
committerGitHub <noreply@github.com>2021-03-19 17:51:52 +0300
commit2d8736f14aaa884c8d2ed90501204366c068a964 (patch)
tree824be91c58b06b05ce72d1dca9372467a5e7e9ab
parentdc5f3b562f4efdd5b8dea5a5271923af0e05363b (diff)
health: apply adapter_raid alarms for every logical/physical device (#10820)
-rw-r--r--collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py6
-rw-r--r--health/health.d/adaptec_raid.conf8
2 files changed, 8 insertions, 6 deletions
diff --git a/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py b/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
index 564c2ce87e..1833ee116f 100644
--- a/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
+++ b/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
@@ -23,11 +23,13 @@ ORDER = [
CHARTS = {
'ld_status': {
- 'options': [None, 'Status Is Not OK', 'bool', 'logical devices', 'adapter_raid.ld_status', 'line'],
+ 'options': [None, 'Status of logical devices (1: Failed or Degraded)', 'bool', 'logical devices',
+ 'adapter_raid.ld_status', 'line'],
'lines': []
},
'pd_state': {
- 'options': [None, 'State Is Not OK', 'bool', 'physical devices', 'adapter_raid.pd_state', 'line'],
+ 'options': [None, 'State of physical devices (1: not Online)', 'bool', 'physical devices',
+ 'adapter_raid.pd_state', 'line'],
'lines': []
},
'pd_smart_warnings': {
diff --git a/health/health.d/adaptec_raid.conf b/health/health.d/adaptec_raid.conf
index a1301ce8ad..f93bde0c7e 100644
--- a/health/health.d/adaptec_raid.conf
+++ b/health/health.d/adaptec_raid.conf
@@ -3,22 +3,22 @@
template: adapter_raid_ld_status
on: adapter_raid.ld_status
- lookup: max -5s
+ lookup: max -10s foreach *
units: bool
every: 10s
crit: $this > 0
delay: down 5m multiplier 1.5 max 1h
- info: at least 1 logical device is failed or degraded
+ info: logical device status is failed or degraded
to: sysadmin
# physical device state check
template: adapter_raid_pd_state
on: adapter_raid.pd_state
- lookup: max -5s
+ lookup: max -10s foreach *
units: bool
every: 10s
crit: $this > 0
delay: down 5m multiplier 1.5 max 1h
- info: at least 1 physical device is not in online state
+ info: physical device state is not online
to: sysadmin