remove python.d/adaptec_raid (#17429)
Ilya Mashchenko committed
Apr 17, 2024 at 17:09 UTC
125359dd5c27dab6fa964fe563321f7c2ce7b251
8 files changed
-707
CMakeLists.txt
-2
@@ -2515,7 +2515,6 @@ install(FILES src/collectors/python.d.plugin/python.d.conf
2515
# conf files
2516
2517
install(FILES
2518
- src/collectors/python.d.plugin/adaptec_raid/adaptec_raid.conf
2518
src/collectors/python.d.plugin/alarms/alarms.conf
2519
src/collectors/python.d.plugin/am2320/am2320.conf
2520
src/collectors/python.d.plugin/anomalies/anomalies.conf
@@ -2565,7 +2564,6 @@ install(FILES
2564
# scripts
2565
2566
install(FILES
2568
- src/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
2567
src/collectors/python.d.plugin/alarms/alarms.chart.py
2568
src/collectors/python.d.plugin/am2320/am2320.chart.py
2569
src/collectors/python.d.plugin/anomalies/anomalies.chart.py
src/collectors/python.d.plugin/adaptec_raid/README.md
deleted
-1
@@ -1 +0,0 @@
1
-integrations/adaptecraid.md
\ No newline at end of file
src/collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
deleted
-247
@@ -1,247 +0,0 @@
1
-# -*- coding: utf-8 -*-
2
-# Description: adaptec_raid netdata python.d module
3
-# Author: Ilya Mashchenko (ilyam8)
4
-# SPDX-License-Identifier: GPL-3.0-or-later
5
-
6
-
7
-import re
8
-from copy import deepcopy
9
-
10
-from bases.FrameworkServices.ExecutableService import ExecutableService
11
-from bases.collection import find_binary
12
-
13
-disabled_by_default = True
14
-
15
-update_every = 5
16
-
17
-ORDER = [
18
- 'ld_status',
19
- 'pd_state',
20
- 'pd_smart_warnings',
21
- 'pd_temperature',
22
-]
23
-
24
-CHARTS = {
25
- 'ld_status': {
26
- 'options': [None, 'Status of logical devices (1: Failed or Degraded)', 'bool', 'logical devices',
27
- 'adaptec_raid.ld_status', 'line'],
28
- 'lines': []
29
- },
30
- 'pd_state': {
31
- 'options': [None, 'State of physical devices (1: not Online)', 'bool', 'physical devices',
32
- 'adaptec_raid.pd_state', 'line'],
33
- 'lines': []
34
- },
35
- 'pd_smart_warnings': {
36
- 'options': [None, 'S.M.A.R.T warnings', 'count', 'physical devices',
37
- 'adaptec_raid.smart_warnings', 'line'],
38
- 'lines': []
39
- },
40
- 'pd_temperature': {
41
- 'options': [None, 'Temperature', 'celsius', 'physical devices', 'adaptec_raid.temperature', 'line'],
42
- 'lines': []
43
- },
44
-}
45
-
46
-SUDO = 'sudo'
47
-ARCCONF = 'arcconf'
48
-
49
-BAD_LD_STATUS = (
50
- 'Degraded',
51
- 'Failed',
52
-)
53
-
54
-GOOD_PD_STATUS = (
55
- 'Online',
56
-)
57
-
58
-RE_LD = re.compile(
59
- r'Logical [dD]evice number\s+([0-9]+).*?'
60
- r'Status of [lL]ogical [dD]evice\s+: ([a-zA-Z]+)'
61
-)
62
-
63
-
64
-def find_lds(d):
65
- d = ' '.join(v.strip() for v in d)
66
- return [LD(*v) for v in RE_LD.findall(d)]
67
-
68
-
69
-def find_pds(d):
70
- pds = list()
71
- pd = PD()
72
-
73
- for row in d:
74
- row = row.strip()
75
- if row.startswith('Device #'):
76
- pd = PD()
77
- pd.id = row.split('#')[-1]
78
- elif not pd.id:
79
- continue
80
-
81
- if row.startswith('State'):
82
- v = row.split()[-1]
83
- pd.state = v
84
- elif row.startswith('S.M.A.R.T. warnings'):
85
- v = row.split()[-1]
86
- pd.smart_warnings = v
87
- elif row.startswith('Temperature'):
88
- v = row.split(':')[-1].split()[0]
89
- pd.temperature = v
90
- elif row.startswith(('NCQ status', 'Device Phy')) or not row:
91
- if pd.id and pd.state and pd.smart_warnings:
92
- pds.append(pd)
93
- pd = PD()
94
-
95
- return pds
96
-
97
-
98
-class LD:
99
- def __init__(self, ld_id, status):
100
- self.id = ld_id
101
- self.status = status
102
-
103
- def data(self):
104
- return {
105
- 'ld_{0}_status'.format(self.id): int(self.status in BAD_LD_STATUS)
106
- }
107
-
108
-
109
-class PD:
110
- def __init__(self):
111
- self.id = None
112
- self.state = None
113
- self.smart_warnings = None
114
- self.temperature = None
115
-
116
- def data(self):
117
- data = {
118
- 'pd_{0}_state'.format(self.id): int(self.state not in GOOD_PD_STATUS),
119
- 'pd_{0}_smart_warnings'.format(self.id): self.smart_warnings,
120
- }
121
- if self.temperature and self.temperature.isdigit():
122
- data['pd_{0}_temperature'.format(self.id)] = self.temperature
123
-
124
- return data
125
-
126
-
127
-class Arcconf:
128
- def __init__(self, arcconf):
129
- self.arcconf = arcconf
130
-
131
- def ld_info(self):
132
- return [self.arcconf, 'GETCONFIG', '1', 'LD']
133
-
134
- def pd_info(self):
135
- return [self.arcconf, 'GETCONFIG', '1', 'PD']
136
-
137
-
138
-# TODO: hardcoded sudo...
139
-class SudoArcconf:
140
- def __init__(self, arcconf, sudo):
141
- self.arcconf = Arcconf(arcconf)
142
- self.sudo = sudo
143
-
144
- def ld_info(self):
145
- return [self.sudo, '-n'] + self.arcconf.ld_info()
146
-
147
- def pd_info(self):
148
- return [self.sudo, '-n'] + self.arcconf.pd_info()
149
-
150
-
151
-class Service(ExecutableService):
152
- def __init__(self, configuration=None, name=None):
153
- ExecutableService.__init__(self, configuration=configuration, name=name)
154
- self.order = ORDER
155
- self.definitions = deepcopy(CHARTS)
156
- self.use_sudo = self.configuration.get('use_sudo', True)
157
- self.arcconf = None
158
-
159
- def execute(self, command, stderr=False):
160
- return self._get_raw_data(command=command, stderr=stderr)
161
-
162
- def check(self):
163
- arcconf = find_binary(ARCCONF)
164
- if not arcconf:
165
- self.error('can\'t locate "{0}" binary'.format(ARCCONF))
166
- return False
167
-
168
- sudo = find_binary(SUDO)
169
- if self.use_sudo:
170
- if not sudo:
171
- self.error('can\'t locate "{0}" binary'.format(SUDO))
172
- return False
173
- err = self.execute([sudo, '-n', '-v'], True)
174
- if err:
175
- self.error(' '.join(err))
176
- return False
177
-
178
- if self.use_sudo:
179
- self.arcconf = SudoArcconf(arcconf, sudo)
180
- else:
181
- self.arcconf = Arcconf(arcconf)
182
-
183
- lds = self.get_lds()
184
- if not lds:
185
- return False
186
-
187
- self.debug('discovered logical devices ids: {0}'.format([ld.id for ld in lds]))
188
-
189
- pds = self.get_pds()
190
- if not pds:
191
- return False
192
-
193
- self.debug('discovered physical devices ids: {0}'.format([pd.id for pd in pds]))
194
-
195
- self.update_charts(lds, pds)
196
- return True
197
-
198
- def get_data(self):
199
- data = dict()
200
-
201
- for ld in self.get_lds():
202
- data.update(ld.data())
203
-
204
- for pd in self.get_pds():
205
- data.update(pd.data())
206
-
207
- return data
208
-
209
- def get_lds(self):
210
- raw_lds = self.execute(self.arcconf.ld_info())
211
- if not raw_lds:
212
- return None
213
-
214
- lds = find_lds(raw_lds)
215
- if not lds:
216
- self.error('failed to parse "{0}" output'.format(' '.join(self.arcconf.ld_info())))
217
- self.debug('output: {0}'.format(raw_lds))
218
- return None
219
- return lds
220
-
221
- def get_pds(self):
222
- raw_pds = self.execute(self.arcconf.pd_info())
223
- if not raw_pds:
224
- return None
225
-
226
- pds = find_pds(raw_pds)
227
- if not pds:
228
- self.error('failed to parse "{0}" output'.format(' '.join(self.arcconf.pd_info())))
229
- self.debug('output: {0}'.format(raw_pds))
230
- return None
231
- return pds
232
-
233
- def update_charts(self, lds, pds):
234
- charts = self.definitions
235
- for ld in lds:
236
- dim = ['ld_{0}_status'.format(ld.id), 'ld {0}'.format(ld.id)]
237
- charts['ld_status']['lines'].append(dim)
238
-
239
- for pd in pds:
240
- dim = ['pd_{0}_state'.format(pd.id), 'pd {0}'.format(pd.id)]
241
- charts['pd_state']['lines'].append(dim)
242
-
243
- dim = ['pd_{0}_smart_warnings'.format(pd.id), 'pd {0}'.format(pd.id)]
244
- charts['pd_smart_warnings']['lines'].append(dim)
245
-
246
- dim = ['pd_{0}_temperature'.format(pd.id), 'pd {0}'.format(pd.id)]
247
- charts['pd_temperature']['lines'].append(dim)
src/collectors/python.d.plugin/adaptec_raid/adaptec_raid.conf
deleted
-53
@@ -1,53 +0,0 @@
1
-# netdata python.d.plugin configuration for adaptec raid
2
-#
3
-# This file is in YaML format. Generally the format is:
4
-#
5
-# name: value
6
-#
7
-
8
-# ----------------------------------------------------------------------
9
-# Global Variables
10
-# These variables set the defaults for all JOBs, however each JOB
11
-# may define its own, overriding the defaults.
12
-
13
-# update_every sets the default data collection frequency.
14
-# If unset, the python.d.plugin default is used.
15
-# update_every: 1
16
-
17
-# priority controls the order of charts at the netdata dashboard.
18
-# Lower numbers move the charts towards the top of the page.
19
-# If unset, the default for python.d.plugin is used.
20
-# priority: 60000
21
-
22
-# penalty indicates whether to apply penalty to update_every in case of failures.
23
-# Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
24
-# penalty: yes
25
-
26
-# autodetection_retry sets the job re-check interval in seconds.
27
-# The job is not deleted if check fails.
28
-# Attempts to start the job are made once every autodetection_retry.
29
-# This feature is disabled by default.
30
-# autodetection_retry: 0
31
-
32
-# ----------------------------------------------------------------------
33
-# JOBS (data collection sources)
34
-#
35
-# The default JOBS share the same *name*. JOBS with the same name
36
-# are mutually exclusive. Only one of them will be allowed running at
37
-# any time. This allows autodetection to try several alternatives and
38
-# pick the one that works.
39
-#
40
-# Any number of jobs is supported.
41
-#
42
-# All python.d.plugin JOBS (for all its modules) support a set of
43
-# predefined parameters. These are:
44
-#
45
-# job_name:
46
-# name: myname # the JOB's name as it will appear at the
47
-# # dashboard (by default is the job_name)
48
-# # JOBs sharing a name are mutually exclusive
49
-# update_every: 1 # the JOB's data collection frequency
50
-# priority: 60000 # the JOB's order on the dashboard
51
-# penalty: yes # the JOB's penalty
52
-# autodetection_retry: 0 # the JOB's re-check interval in seconds
53
-# ----------------------------------------------------------------------
src/collectors/python.d.plugin/adaptec_raid/integrations/adaptecraid.md
deleted
-204
@@ -1,204 +0,0 @@
1
-<!--startmeta
2
-custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/adaptec_raid/README.md"
3
-meta_yaml: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/adaptec_raid/metadata.yaml"
4
-sidebar_label: "AdaptecRAID"
5
-learn_status: "Published"
6
-learn_rel_path: "Collecting Metrics/Storage, Mount Points and Filesystems"
7
-most_popular: False
8
-message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
9
-endmeta-->
10
-
11
-# AdaptecRAID
12
-
13
-
14
-<img src="https://netdata.cloud/img/adaptec.svg" width="150"/>
15
-
16
-
17
-Plugin: python.d.plugin
18
-Module: adaptec_raid
19
-
20
-<img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
21
-
22
-## Overview
23
-
24
-This collector monitors Adaptec RAID hardware storage controller metrics about both physical and logical drives.
25
-
26
-
27
-It uses the arcconf command line utility (from adaptec) to monitor your raid controller.
28
-
29
-Executed commands:
30
- - `sudo -n arcconf GETCONFIG 1 LD`
31
- - `sudo -n arcconf GETCONFIG 1 PD`
32
-
33
-
34
-This collector is supported on all platforms.
35
-
36
-This collector only supports collecting metrics from a single instance of this integration.
37
-
38
-The module uses arcconf, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute arcconf as root without a password.
39
-
40
-### Default Behavior
41
-
42
-#### Auto-Detection
43
-
44
-After all the permissions are satisfied, netdata should be to execute commands via the arcconf command line utility
45
-
46
-#### Limits
47
-
48
-The default configuration for this integration does not impose any limits on data collection.
49
-
50
-#### Performance Impact
51
-
52
-The default configuration for this integration is not expected to impose a significant performance impact on the system.
53
-
54
-
55
-## Metrics
56
-
57
-Metrics grouped by *scope*.
58
-
59
-The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
60
-
61
-
62
-
63
-### Per AdaptecRAID instance
64
-
65
-These metrics refer to the entire monitored application.
66
-
67
-This scope has no labels.
68
-
69
-Metrics:
70
-
71
-| Metric | Dimensions | Unit |
72
-|:------|:----------|:----|
73
-| adaptec_raid.ld_status | a dimension per logical device | bool |
74
-| adaptec_raid.pd_state | a dimension per physical device | bool |
75
-| adaptec_raid.smart_warnings | a dimension per physical device | count |
76
-| adaptec_raid.temperature | a dimension per physical device | celsius |
77
-
78
-
79
-
80
-## Alerts
81
-
82
-
83
-The following alerts are available:
84
-
85
-| Alert name | On metric | Description |
86
-|:------------|:----------|:------------|
87
-| [ adaptec_raid_ld_status ](https://github.com/netdata/netdata/blob/master/src/health/health.d/adaptec_raid.conf) | adaptec_raid.ld_status | logical device status is failed or degraded |
88
-| [ adaptec_raid_pd_state ](https://github.com/netdata/netdata/blob/master/src/health/health.d/adaptec_raid.conf) | adaptec_raid.pd_state | physical device state is not online |
89
-
90
-
91
-## Setup
92
-
93
-### Prerequisites
94
-
95
-#### Grant permissions for netdata, to run arcconf as sudoer
96
-
97
-The module uses arcconf, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute arcconf as root without a password.
98
-
99
-Add to your /etc/sudoers file:
100
-which arcconf shows the full path to the binary.
101
-
102
-```bash
103
-netdata ALL=(root) NOPASSWD: /path/to/arcconf
104
-```
105
-
106
-
107
-#### Reset Netdata's systemd unit CapabilityBoundingSet (Linux distributions with systemd)
108
-
109
-The default CapabilityBoundingSet doesn't allow using sudo, and is quite strict in general. Resetting is not optimal, but a next-best solution given the inability to execute arcconf using sudo.
110
-
111
-As root user, do the following:
112
-
113
-```bash
114
-mkdir /etc/systemd/system/netdata.service.d
115
-echo -e '[Service]\nCapabilityBoundingSet=~' | tee /etc/systemd/system/netdata.service.d/unset-capability-bounding-set.conf
116
-systemctl daemon-reload
117
-systemctl restart netdata.service
118
-```
119
-
120
-
121
-
122
-### Configuration
123
-
124
-#### File
125
-
126
-The configuration file name for this integration is `python.d/adaptec_raid.conf`.
127
-
128
-
129
-You can edit the configuration file using the `edit-config` script from the
130
-Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/netdata-agent/configuration.md#the-netdata-config-directory).
131
-
132
-```bash
133
-cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
134
-sudo ./edit-config python.d/adaptec_raid.conf
135
-```
136
-#### Options
137
-
138
-There are 2 sections:
139
-
140
-* Global variables
141
-* One or more JOBS that can define multiple different instances to monitor.
142
-
143
-The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
144
-
145
-Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
146
-
147
-Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
148
-
149
-
150
-<details><summary>Config options</summary>
151
-
152
-| Name | Description | Default | Required |
153
-|:----|:-----------|:-------|:--------:|
154
-| update_every | Sets the default data collection frequency. | 5 | no |
155
-| priority | Controls the order of charts at the netdata dashboard. | 60000 | no |
156
-| autodetection_retry | Sets the job re-check interval in seconds. | 0 | no |
157
-| penalty | Indicates whether to apply penalty to update_every in case of failures. | yes | no |
158
-
159
-</details>
160
-
161
-#### Examples
162
-
163
-##### Basic
164
-
165
-A basic example configuration per job
166
-
167
-```yaml
168
-job_name:
169
- name: my_job_name
170
- update_every: 1 # the JOB's data collection frequency
171
- priority: 60000 # the JOB's order on the dashboard
172
- penalty: yes # the JOB's penalty
173
- autodetection_retry: 0 # the JOB's re-check interval in seconds
174
-
175
-```
176
-
177
-
178
-## Troubleshooting
179
-
180
-### Debug Mode
181
-
182
-To troubleshoot issues with the `adaptec_raid` collector, run the `python.d.plugin` with the debug option enabled. The output
183
-should give you clues as to why the collector isn't working.
184
-
185
-- Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
186
- your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
187
-
188
- ```bash
189
- cd /usr/libexec/netdata/plugins.d/
190
- ```
191
-
192
-- Switch to the `netdata` user.
193
-
194
- ```bash
195
- sudo -u netdata -s
196
- ```
197
-
198
-- Run the `python.d.plugin` to debug the collector:
199
-
200
- ```bash
201
- ./python.d.plugin adaptec_raid debug trace
202
- ```
203
-
204
-
src/collectors/python.d.plugin/adaptec_raid/metadata.yaml
deleted
-167
@@ -1,167 +0,0 @@
1
-plugin_name: python.d.plugin
2
-modules:
3
- - meta:
4
- plugin_name: python.d.plugin
5
- module_name: adaptec_raid
6
- monitored_instance:
7
- name: AdaptecRAID
8
- link: "https://www.microchip.com/en-us/products/storage"
9
- categories:
10
- - data-collection.storage-mount-points-and-filesystems
11
- icon_filename: "adaptec.svg"
12
- related_resources:
13
- integrations:
14
- list: []
15
- info_provided_to_referring_integrations:
16
- description: ""
17
- keywords:
18
- - storage
19
- - raid-controller
20
- - manage-disks
21
- most_popular: false
22
- overview:
23
- data_collection:
24
- metrics_description: |
25
- This collector monitors Adaptec RAID hardware storage controller metrics about both physical and logical drives.
26
- method_description: |
27
- It uses the arcconf command line utility (from adaptec) to monitor your raid controller.
28
-
29
- Executed commands:
30
- - `sudo -n arcconf GETCONFIG 1 LD`
31
- - `sudo -n arcconf GETCONFIG 1 PD`
32
- supported_platforms:
33
- include: []
34
- exclude: []
35
- multi_instance: false
36
- additional_permissions:
37
- description: "The module uses arcconf, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute arcconf as root without a password."
38
- default_behavior:
39
- auto_detection:
40
- description: "After all the permissions are satisfied, netdata should be to execute commands via the arcconf command line utility"
41
- limits:
42
- description: ""
43
- performance_impact:
44
- description: ""
45
- setup:
46
- prerequisites:
47
- list:
48
- - title: Grant permissions for netdata, to run arcconf as sudoer
49
- description: |
50
- The module uses arcconf, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute arcconf as root without a password.
51
-
52
- Add to your /etc/sudoers file:
53
- which arcconf shows the full path to the binary.
54
-
55
- ```bash
56
- netdata ALL=(root) NOPASSWD: /path/to/arcconf
57
- ```
58
- - title: Reset Netdata's systemd unit CapabilityBoundingSet (Linux distributions with systemd)
59
- description: |
60
- The default CapabilityBoundingSet doesn't allow using sudo, and is quite strict in general. Resetting is not optimal, but a next-best solution given the inability to execute arcconf using sudo.
61
-
62
- As root user, do the following:
63
-
64
- ```bash
65
- mkdir /etc/systemd/system/netdata.service.d
66
- echo -e '[Service]\nCapabilityBoundingSet=~' | tee /etc/systemd/system/netdata.service.d/unset-capability-bounding-set.conf
67
- systemctl daemon-reload
68
- systemctl restart netdata.service
69
- ```
70
- configuration:
71
- file:
72
- name: "python.d/adaptec_raid.conf"
73
- options:
74
- description: |
75
- There are 2 sections:
76
-
77
- * Global variables
78
- * One or more JOBS that can define multiple different instances to monitor.
79
-
80
- The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
81
-
82
- Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
83
-
84
- Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
85
- folding:
86
- title: "Config options"
87
- enabled: true
88
- list:
89
- - name: update_every
90
- description: Sets the default data collection frequency.
91
- default_value: 5
92
- required: false
93
- - name: priority
94
- description: Controls the order of charts at the netdata dashboard.
95
- default_value: 60000
96
- required: false
97
- - name: autodetection_retry
98
- description: Sets the job re-check interval in seconds.
99
- default_value: 0
100
- required: false
101
- - name: penalty
102
- description: Indicates whether to apply penalty to update_every in case of failures.
103
- default_value: yes
104
- required: false
105
- examples:
106
- folding:
107
- enabled: true
108
- title: "Config"
109
- list:
110
- - name: Basic
111
- folding:
112
- enabled: false
113
- description: A basic example configuration per job
114
- config: |
115
- job_name:
116
- name: my_job_name
117
- update_every: 1 # the JOB's data collection frequency
118
- priority: 60000 # the JOB's order on the dashboard
119
- penalty: yes # the JOB's penalty
120
- autodetection_retry: 0 # the JOB's re-check interval in seconds
121
- troubleshooting:
122
- problems:
123
- list: []
124
- alerts:
125
- - name: adaptec_raid_ld_status
126
- link: https://github.com/netdata/netdata/blob/master/src/health/health.d/adaptec_raid.conf
127
- metric: adaptec_raid.ld_status
128
- info: logical device status is failed or degraded
129
- - name: adaptec_raid_pd_state
130
- link: https://github.com/netdata/netdata/blob/master/src/health/health.d/adaptec_raid.conf
131
- metric: adaptec_raid.pd_state
132
- info: physical device state is not online
133
- metrics:
134
- folding:
135
- title: Metrics
136
- enabled: false
137
- description: ""
138
- availability: []
139
- scopes:
140
- - name: global
141
- description: "These metrics refer to the entire monitored application."
142
- labels: []
143
- metrics:
144
- - name: adaptec_raid.ld_status
145
- description: "Status of logical devices (1: Failed or Degraded)"
146
- unit: "bool"
147
- chart_type: line
148
- dimensions:
149
- - name: a dimension per logical device
150
- - name: adaptec_raid.pd_state
151
- description: "State of physical devices (1: not Online)"
152
- unit: "bool"
153
- chart_type: line
154
- dimensions:
155
- - name: a dimension per physical device
156
- - name: adaptec_raid.smart_warnings
157
- description: S.M.A.R.T warnings
158
- unit: "count"
159
- chart_type: line
160
- dimensions:
161
- - name: a dimension per physical device
162
- - name: adaptec_raid.temperature
163
- description: Temperature
164
- unit: "celsius"
165
- chart_type: line
166
- dimensions:
167
- - name: a dimension per physical device
src/collectors/python.d.plugin/python.d.conf
-1
@@ -25,7 +25,6 @@ gc_run: yes
25
# Garbage collection interval in seconds. Default is 300.
26
gc_interval: 300
27
28
-# adaptec_raid: yes
28
# alarms: yes
29
# am2320: yes
30
# anomalies: no
src/health/health.d/adaptec_raid.conf
-32
@@ -27,35 +27,3 @@ component: RAID
27
summary: Adaptec RAID PD (number ${label:pd_number}) health state
28
info: Adaptec RAID physical device (number ${label:pd_number} location ${label:location}) health state is critical
29
to: sysadmin
30
-
31
-# logical device status check
32
-
33
- template: adaptec_raid_ld_status
34
- on: adaptec_raid.ld_status
35
- class: Errors
36
- type: System
37
-component: RAID
38
- lookup: max -10s
39
- units: bool
40
- every: 10s
41
- crit: $this > 0
42
- delay: down 5m multiplier 1.5 max 1h
43
- summary: Adaptec raid logical device status
44
- info: Logical device status is failed or degraded
45
- to: sysadmin
46
-
47
-# physical device state check
48
-
49
- template: adaptec_raid_pd_state
50
- on: adaptec_raid.pd_state
51
- class: Errors
52
- type: System
53
-component: RAID
54
- lookup: max -10s
55
- units: bool
56
- every: 10s
57
- crit: $this > 0
58
- delay: down 5m multiplier 1.5 max 1h
59
- summary: Adaptec raid physical device state
60
- info: Physical device state is not online
61
- to: sysadmin