summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-05-06 18:04:30 +0300
committerGitHub <noreply@github.com>2024-05-06 18:04:30 +0300
commit1b549b1dd79c951ee8f23e6d13f525061adc8df2 (patch)
treecfe0b2b1c67cf000a9fde9b29a3aaf103912d0dd /src
parent8747d882b0449718115f85386045e04005bf2f9e (diff)
remove python.d/smartd_log (#17600)
Diffstat (limited to 'src')
l---------src/collectors/python.d.plugin/smartd_log/README.md1
-rw-r--r--src/collectors/python.d.plugin/smartd_log/integrations/s.m.a.r.t..md223
-rw-r--r--src/collectors/python.d.plugin/smartd_log/metadata.yaml429
-rw-r--r--src/collectors/python.d.plugin/smartd_log/smartd_log.chart.py790
-rw-r--r--src/collectors/python.d.plugin/smartd_log/smartd_log.conf76
5 files changed, 0 insertions, 1519 deletions
diff --git a/src/collectors/python.d.plugin/smartd_log/README.md b/src/collectors/python.d.plugin/smartd_log/README.md
deleted file mode 120000
index 63aad6c850..0000000000
--- a/src/collectors/python.d.plugin/smartd_log/README.md
+++ /dev/null
@@ -1 +0,0 @@
-integrations/s.m.a.r.t..md \ No newline at end of file
diff --git a/src/collectors/python.d.plugin/smartd_log/integrations/s.m.a.r.t..md b/src/collectors/python.d.plugin/smartd_log/integrations/s.m.a.r.t..md
deleted file mode 100644
index 73a96ae552..0000000000
--- a/src/collectors/python.d.plugin/smartd_log/integrations/s.m.a.r.t..md
+++ /dev/null
@@ -1,223 +0,0 @@
-<!--startmeta
-custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/smartd_log/README.md"
-meta_yaml: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/smartd_log/metadata.yaml"
-sidebar_label: "S.M.A.R.T."
-learn_status: "Published"
-learn_rel_path: "Collecting Metrics/Hardware Devices and Sensors"
-most_popular: False
-message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
-endmeta-->
-
-# S.M.A.R.T.
-
-
-<img src="https://netdata.cloud/img/smart.png" width="150"/>
-
-
-Plugin: python.d.plugin
-Module: smartd_log
-
-<img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
-
-## Overview
-
-This collector monitors HDD/SSD S.M.A.R.T. metrics about drive health and performance.
-
-
-It reads `smartd` log files to collect the metrics.
-
-
-This collector is supported on all platforms.
-
-This collector only supports collecting metrics from a single instance of this integration.
-
-
-### Default Behavior
-
-#### Auto-Detection
-
-Upon satisfying the prerequisites, the collector will auto-detect metrics if written in either `/var/log/smartd/` or `/var/lib/smartmontools/`.
-
-#### Limits
-
-The default configuration for this integration does not impose any limits on data collection.
-
-#### Performance Impact
-
-The default configuration for this integration is not expected to impose a significant performance impact on the system.
-
-
-## Metrics
-
-Metrics grouped by *scope*.
-
-The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
-
-The metrics listed below are split in terms of availability on device type, SCSI or ATA.
-
-### Per S.M.A.R.T. instance
-
-These metrics refer to the entire monitored application.
-
-This scope has no labels.
-
-Metrics:
-
-| Metric | Dimensions | Unit | SCSI | ATA |
-|:------|:----------|:----|:---:|:---:|
-| smartd_log.read_error_rate | a dimension per device | value | | • |
-| smartd_log.seek_error_rate | a dimension per device | value | | • |
-| smartd_log.soft_read_error_rate | a dimension per device | errors | | • |
-| smartd_log.write_error_rate | a dimension per device | value | | • |
-| smartd_log.read_total_err_corrected | a dimension per device | errors | • | |
-| smartd_log.read_total_unc_errors | a dimension per device | errors | • | |
-| smartd_log.write_total_err_corrected | a dimension per device | errors | • | |
-| smartd_log.write_total_unc_errors | a dimension per device | errors | • | |
-| smartd_log.verify_total_err_corrected | a dimension per device | errors | • | |
-| smartd_log.verify_total_unc_errors | a dimension per device | errors | • | |
-| smartd_log.sata_interface_downshift | a dimension per device | events | | • |
-| smartd_log.udma_crc_error_count | a dimension per device | errors | | • |
-| smartd_log.throughput_performance | a dimension per device | value | | • |
-| smartd_log.seek_time_performance | a dimension per device | value | | • |
-| smartd_log.start_stop_count | a dimension per device | events | | • |
-| smartd_log.power_on_hours_count | a dimension per device | hours | | • |
-| smartd_log.power_cycle_count | a dimension per device | events | | • |
-| smartd_log.unexpected_power_loss | a dimension per device | events | | • |
-| smartd_log.spin_up_time | a dimension per device | ms | | • |
-| smartd_log.spin_up_retries | a dimension per device | retries | | • |
-| smartd_log.calibration_retries | a dimension per device | retries | | • |
-| smartd_log.airflow_temperature_celsius | a dimension per device | celsius | | • |
-| smartd_log.temperature_celsius | a dimension per device | celsius | • | • |
-| smartd_log.reallocated_sectors_count | a dimension per device | sectors | | • |
-| smartd_log.reserved_block_count | a dimension per device | percentage | | • |
-| smartd_log.program_fail_count | a dimension per device | errors | | • |
-| smartd_log.erase_fail_count | a dimension per device | failures | | • |
-| smartd_log.wear_leveller_worst_case_erase_count | a dimension per device | erases | | • |
-| smartd_log.unused_reserved_nand_blocks | a dimension per device | blocks | | • |
-| smartd_log.reallocation_event_count | a dimension per device | events | | • |
-| smartd_log.current_pending_sector_count | a dimension per device | sectors | | • |
-| smartd_log.offline_uncorrectable_sector_count | a dimension per device | sectors | | • |
-| smartd_log.percent_lifetime_used | a dimension per device | percentage | | • |
-| smartd_log.media_wearout_indicator | a dimension per device | percentage | | • |
-| smartd_log.nand_writes_1gib | a dimension per device | GiB | | • |
-
-
-
-## Alerts
-
-There are no alerts configured by default for this integration.
-
-
-## Setup
-
-### Prerequisites
-
-#### Configure `smartd` to write attribute information to files.
-
-`smartd` must be running with `-A` option to write `smartd` attribute information to files.
-
-For this you need to set `smartd_opts` (or `SMARTD_ARGS`, check _smartd.service_ content) in `/etc/default/smartmontools`:
-
-```
-# dump smartd attrs info every 600 seconds
-smartd_opts="-A /var/log/smartd/ -i 600"
-```
-
-You may need to create the smartd directory before smartd will write to it:
-
-```sh
-mkdir -p /var/log/smartd
-```
-
-Otherwise, all the smartd `.csv` files may get written to `/var/lib/smartmontools` (default location). See also <https://linux.die.net/man/8/smartd> for more info on the `-A --attributelog=PREFIX` command.
-
-`smartd` appends logs at every run. It's strongly recommended to use `logrotate` for smartd files.
-
-
-
-### Configuration
-
-#### File
-
-The configuration file name for this integration is `python.d/smartd_log.conf`.
-
-
-You can edit the configuration file using the `edit-config` script from the
-Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/netdata-agent/configuration.md#the-netdata-config-directory).
-
-```bash
-cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
-sudo ./edit-config python.d/smartd_log.conf
-```
-#### Options
-
-This particular collector does not need further configuration to work if permissions are satisfied, but you can always customize it's data collection behavior.
-
-There are 2 sections:
-
-* Global variables
-* One or more JOBS that can define multiple different instances to monitor.
-
-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.
-
-Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
-
-Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
-
-
-<details><summary>Config options</summary>
-
-| Name | Description | Default | Required |
-|:----|:-----------|:-------|:--------:|
-| log_path | path to smartd log files. | /var/log/smartd | yes |
-| exclude_disks | Space-separated patterns. If the pattern is in the drive name, the module will not collect data for it. | | no |
-| age | Time in minutes since the last dump to file. | 30 | no |
-| update_every | Sets the default data collection frequency. | 1 | no |
-| priority | Controls the order of charts at the netdata dashboard. | 60000 | no |
-| autodetection_retry | Sets the job re-check interval in seconds. | 0 | no |
-| penalty | Indicates whether to apply penalty to update_every in case of failures. | yes | no |
-| name | Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works. | | no |
-
-</details>
-
-#### Examples
-
-##### Basic
-
-A basic configuration example.
-
-```yaml
-custom:
- name: smartd_log
- log_path: '/var/log/smartd/'
-
-```
-
-
-## Troubleshooting
-
-### Debug Mode
-
-To troubleshoot issues with the `smartd_log` collector, run the `python.d.plugin` with the debug option enabled. The output
-should give you clues as to why the collector isn't working.
-
-- Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
- your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
-
- ```bash
- cd /usr/libexec/netdata/plugins.d/
- ```
-
-- Switch to the `netdata` user.
-
- ```bash
- sudo -u netdata -s
- ```
-
-- Run the `python.d.plugin` to debug the collector:
-
- ```bash
- ./python.d.plugin smartd_log debug trace
- ```
-
-
diff --git a/src/collectors/python.d.plugin/smartd_log/metadata.yaml b/src/collectors/python.d.plugin/smartd_log/metadata.yaml
deleted file mode 100644
index d11949691a..0000000000
--- a/src/collectors/python.d.plugin/smartd_log/metadata.yaml
+++ /dev/null
@@ -1,429 +0,0 @@
-plugin_name: python.d.plugin
-modules:
- - meta:
- plugin_name: python.d.plugin
- module_name: smartd_log
- monitored_instance:
- name: S.M.A.R.T.
- link: "https://linux.die.net/man/8/smartd"
- categories:
- - data-collection.hardware-devices-and-sensors
- icon_filename: "smart.png"
- related_resources:
- integrations:
- list: []
- info_provided_to_referring_integrations:
- description: ""
- keywords:
- - smart
- - S.M.A.R.T.
- - SCSI devices
- - ATA devices
- most_popular: false
- overview:
- data_collection:
- metrics_description: |
- This collector monitors HDD/SSD S.M.A.R.T. metrics about drive health and performance.
- method_description: |
- It reads `smartd` log files to collect the metrics.
- supported_platforms:
- include: []
- exclude: []
- multi_instance: false
- additional_permissions:
- description: ""
- default_behavior:
- auto_detection:
- description: Upon satisfying the prerequisites, the collector will auto-detect metrics if written in either `/var/log/smartd/` or `/var/lib/smartmontools/`.
- limits:
- description: ""
- performance_impact:
- description: ""
- setup:
- prerequisites:
- list:
- - title: Configure `smartd` to write attribute information to files.
- description: |
- `smartd` must be running with `-A` option to write `smartd` attribute information to files.
-
- For this you need to set `smartd_opts` (or `SMARTD_ARGS`, check _smartd.service_ content) in `/etc/default/smartmontools`:
-
- ```
- # dump smartd attrs info every 600 seconds
- smartd_opts="-A /var/log/smartd/ -i 600"
- ```
-
- You may need to create the smartd directory before smartd will write to it:
-
- ```sh
- mkdir -p /var/log/smartd
- ```
-
- Otherwise, all the smartd `.csv` files may get written to `/var/lib/smartmontools` (default location). See also <https://linux.die.net/man/8/smartd> for more info on the `-A --attributelog=PREFIX` command.
-
- `smartd` appends logs at every run. It's strongly recommended to use `logrotate` for smartd files.
- configuration:
- file:
- name: "python.d/smartd_log.conf"
- options:
- description: |
- This particular collector does not need further configuration to work if permissions are satisfied, but you can always customize it's data collection behavior.
-
- There are 2 sections:
-
- * Global variables
- * One or more JOBS that can define multiple different instances to monitor.
-
- 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.
-
- Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
-
- Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
- folding:
- title: "Config options"
- enabled: true
- list:
- - name: log_path
- description: path to smartd log files.
- default_value: /var/log/smartd
- required: true
- - name: exclude_disks
- description: Space-separated patterns. If the pattern is in the drive name, the module will not collect data for it.
- default_value: ""
- required: false
- - name: age
- description: Time in minutes since the last dump to file.
- default_value: 30
- required: false
- - name: update_every
- description: Sets the default data collection frequency.
- default_value: 1
- required: false
- - name: priority
- description: Controls the order of charts at the netdata dashboard.
- default_value: 60000
- required: false
- - name: autodetection_retry
- description: Sets the job re-check interval in seconds.
- default_value: 0
- required: false
- - name: penalty
- description: Indicates whether to apply penalty to update_every in case of failures.
- default_value: yes
- required: false
- - name: name
- description: >
- Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works.
- default_value: ""
- required: false
- examples:
- folding:
- enabled: true
- title: "Config"
- list:
- - name: Basic
- description: A basic configuration example.
- folding:
- enabled: false
- config: |
- custom:
- name: smartd_log
- log_path: '/var/log/smartd/'
- troubleshooting:
- problems:
- list: []
- alerts: []
- metrics:
- folding:
- title: Metrics
- enabled: false
- description: "The metrics listed below are split in terms of availability on device type, SCSI or ATA."
- availability:
- - "SCSI"
- - "ATA"
- scopes:
- - name: global
- description: "These metrics refer to the entire monitored application."
- labels: []
- metrics:
- - name: smartd_log.read_error_rate
- description: Read Error Rate
- availability:
- - ATA
- unit: "value"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.seek_error_rate
- description: Seek Error Rate
- availability:
- - ATA
- unit: "value"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.soft_read_error_rate
- description: Soft Read Error Rate
- availability:
- - ATA
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.write_error_rate
- description: Write Error Rate
- availability:
- - ATA
- unit: "value"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.read_total_err_corrected
- description: Read Error Corrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.read_total_unc_errors
- description: Read Error Uncorrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.write_total_err_corrected
- description: Write Error Corrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.write_total_unc_errors
- description: Write Error Uncorrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.verify_total_err_corrected
- description: Verify Error Corrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.verify_total_unc_errors
- description: Verify Error Uncorrected
- availability:
- - SCSI
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.sata_interface_downshift
- description: SATA Interface Downshift
- availability:
- - ATA
- unit: "events"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.udma_crc_error_count
- description: UDMA CRC Error Count
- availability:
- - ATA
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.throughput_performance
- description: Throughput Performance
- availability:
- - ATA
- unit: "value"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.seek_time_performance
- description: Seek Time Performance
- availability:
- - ATA
- unit: "value"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.start_stop_count
- description: Start/Stop Count
- availability:
- - ATA
- unit: "events"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.power_on_hours_count
- description: Power-On Hours Count
- availability:
- - ATA
- unit: "hours"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.power_cycle_count
- description: Power Cycle Count
- availability:
- - ATA
- unit: "events"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.unexpected_power_loss
- description: Unexpected Power Loss
- availability:
- - ATA
- unit: "events"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.spin_up_time
- description: Spin-Up Time
- availability:
- - ATA
- unit: "ms"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.spin_up_retries
- description: Spin-up Retries
- availability:
- - ATA
- unit: "retries"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.calibration_retries
- description: Calibration Retries
- availability:
- - ATA
- unit: "retries"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.airflow_temperature_celsius
- description: Airflow Temperature Celsius
- availability:
- - ATA
- unit: "celsius"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.temperature_celsius
- description: Temperature
- availability:
- - SCSI
- - ATA
- unit: "celsius"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.reallocated_sectors_count
- description: Reallocated Sectors Count
- availability:
- - ATA
- unit: "sectors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.reserved_block_count
- description: Reserved Block Count
- availability:
- - ATA
- unit: "percentage"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.program_fail_count
- description: Program Fail Count
- availability:
- - ATA
- unit: "errors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.erase_fail_count
- description: Erase Fail Count
- availability:
- - ATA
- unit: "failures"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.wear_leveller_worst_case_erase_count
- description: Wear Leveller Worst Case Erase Count
- availability:
- - ATA
- unit: "erases"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.unused_reserved_nand_blocks
- description: Unused Reserved NAND Blocks
- availability:
- - ATA
- unit: "blocks"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.reallocation_event_count
- description: Reallocation Event Count
- availability:
- - ATA
- unit: "events"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.current_pending_sector_count
- description: Current Pending Sector Count
- availability:
- - ATA
- unit: "sectors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.offline_uncorrectable_sector_count
- description: Offline Uncorrectable Sector Count
- availability:
- - ATA
- unit: "sectors"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.percent_lifetime_used
- description: Percent Lifetime Used
- availability:
- - ATA
- unit: "percentage"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.media_wearout_indicator
- description: Media Wearout Indicator
- availability:
- - ATA
- unit: "percentage"
- chart_type: line
- dimensions:
- - name: a dimension per device
- - name: smartd_log.nand_writes_1gib
- description: NAND Writes
- availability:
- - ATA
- unit: "GiB"
- chart_type: line
- dimensions:
- - name: a dimension per device
diff --git a/src/collectors/python.d.plugin/smartd_log/smartd_log.chart.py b/src/collectors/python.d.plugin/smartd_log/smartd_log.chart.py
deleted file mode 100644
index a896164dfc..0000000000
--- a/src/collectors/python.d.plugin/smartd_log/smartd_log.chart.py
+++ /dev/null
@@ -1,790 +0,0 @@
-# -*- coding: utf-8 -*-
-# Description: smart netdata python.d module
-# Author: ilyam8, vorph1
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import re
-from copy import deepcopy
-from time import time
-
-from bases.FrameworkServices.SimpleService import SimpleService
-from bases.collection import read_last_line
-
-INCREMENTAL = 'incremental'
-ABSOLUTE = 'absolute'
-
-ATA = 'ata'
-SCSI = 'scsi'
-CSV = '.csv'
-
-DEF_RESCAN_INTERVAL = 60
-DEF_AGE = 30
-DEF_PATH = '/var/log/smartd'
-
-ATTR1 = '1'
-ATTR2 = '2'
-ATTR3 = '3'
-ATTR4 = '4'
-ATTR5 = '5'
-ATTR7 = '7'
-ATTR8 = '8'
-ATTR9 = '9'
-ATTR10 = '10'
-ATTR11 = '11'
-ATTR12 = '12'
-ATTR13 = '13'
-ATTR170 = '170'
-ATTR171 = '171'
-ATTR172 = '172'
-ATTR173 = '173'
-ATTR174 = '174'
-ATTR177 = '177'
-ATTR180 = '180'
-ATTR183 = '183'
-ATTR190 = '190'
-ATTR194 = '194'
-ATTR196 = '196'
-ATTR197 = '197'
-ATTR198 = '198'
-ATTR199 = '199'
-ATTR202 = '202'
-ATTR206 = '206'
-ATTR233 = '233'
-ATTR241 = '241'
-ATTR242 = '242'
-ATTR249 = '249'
-ATTR_READ_ERR_COR = 'read-total-err-corrected'
-ATTR_READ_ERR_UNC = 'read-total-unc-errors'
-ATTR_WRITE_ERR_COR = 'write-total-err-corrected'
-ATTR_WRITE_ERR_UNC = 'write-total-unc-errors'
-ATTR_VERIFY_ERR_COR = 'verify-total-err-corrected'
-ATTR_VERIFY_ERR_UNC = 'verify-total-unc-errors'
-ATTR_TEMPERATURE = 'temperature'
-
-RE_ATA = re.compile(
- '(\d+);' # attribute
- '(\d+);' # normalized value
- '(\d+)', # raw value
- re.X
-)
-
-RE_SCSI = re.compile(
- '([a-z-]+);' # attribute
- '([0-9.]+)', # raw value
- re.X
-)
-
-ORDER = [
- # errors
- 'read_error_rate',
- 'seek_error_rate',
- 'soft_read_error_rate',
- 'write_error_rate',
- 'read_total_err_corrected',
- 'read_total_unc_errors',
- 'write_total_err_corrected',
- 'write_total_unc_errors',
- 'verify_total_err_corrected',
- 'verify_total_unc_errors',
- # external failure
- 'sata_interface_downshift',
- 'udma_crc_error_count',
- # performance
- 'throughput_performance',
- 'seek_time_performance',
- # power
- 'start_stop_count',
- 'power_on_hours_count',
- 'power_cycle_count',
- 'unexpected_power_loss',
- # spin
- 'spin_up_time',
- 'spin_up_retries',
- 'calibration_retries',
- # temperature
- 'airflow_temperature_celsius',
- 'temperature_celsius',
- # wear
- 'reallocated_sectors_count',
- 'reserved_block_count',
- 'program_fail_count',
- 'erase_fail_count',
- 'wear_leveller_worst_case_erase_count',
- 'unused_reserved_nand_blocks',
- 'reallocation_event_count',
- 'current_pending_sector_count',
- 'offline_uncorrectable_sector_count',
- 'percent_lifetime_used',
- 'media_wearout_indicator',
- 'total_lbas_written',
- 'total_lbas_read',
-]
-
-CHARTS = {
- 'read_error_rate': {
- 'options': [None, 'Read Error Rate', 'value', 'errors', 'smartd_log.read_error_rate', 'line'],
- 'lines': [],
- 'attrs': [ATTR1],
- 'algo': ABSOLUTE,
- },
- 'seek_error_rate': {
- 'options': [None, 'Seek Error Rate', 'value', 'errors', 'smartd_log.seek_error_rate', 'line'],
- 'lines': [],
- 'attrs': [ATTR7],
- 'algo': ABSOLUTE,
- },
- 'soft_read_error_rate': {
- 'options': [None, 'Soft Read Error Rate', 'errors', 'errors', 'smartd_log.soft_read_error_rate', 'line'],
- 'lines': [],
- 'attrs': [ATTR13],
- 'algo': INCREMENTAL,
- },
- 'write_error_rate': {
- 'options': [None, 'Write Error Rate', 'value', 'errors', 'smartd_log.write_error_rate', 'line'],
- 'lines': [],
- 'attrs': [ATTR206],
- 'algo': ABSOLUTE,
- },
- 'read_total_err_corrected': {
- 'options': [None, 'Read Error Corrected', 'errors', 'errors', 'smartd_log.read_total_err_corrected', 'line'],
- 'lines': [],
- 'attrs': [ATTR_READ_ERR_COR],
- 'algo': INCREMENTAL,
- },
- 'read_total_unc_errors': {
- 'options': [None, 'Read Error Uncorrected', 'errors', 'errors', 'smartd_log.read_total_unc_errors', 'line'],
- 'lines': [],
- 'attrs': [ATTR_READ_ERR_UNC],
- 'algo': INCREMENTAL,
- },
- 'write_total_err_corrected': {
- 'options': [None, 'Write Error Corrected', 'errors', 'errors', 'smartd_log.write_total_err_corrected', 'line'],
- 'lines': [],
- 'attrs': [ATTR_WRITE_ERR_COR],
- 'algo': INCREMENTAL,
- },
- 'write_total_unc_errors': {
- 'options': [None, 'Write Error Uncorrected', 'errors', 'errors', 'smartd_log.write_total_unc_errors', 'line'],
- 'lines': [],
- 'attrs': [ATTR_WRITE_ERR_UNC],
- 'algo': INCREMENTAL,
- },
- 'verify_total_err_corrected': {
- 'options': [None, 'Verify Error Corrected', 'errors', 'errors', 'smartd_log.verify_total_err_corrected',
- 'line'],
- 'lines': [],
- 'attrs': [ATTR_VERIFY_ERR_COR],
- 'algo': INCREMENTAL,
- },
- 'verify_total_unc_errors': {
- 'options': [None, 'Verify Error Uncorrected', 'errors', 'errors', 'smartd_log.verify_total_unc_errors', 'line'],
- 'lines': [],
- 'attrs': [ATTR_VERIFY_ERR_UNC],
- 'algo': INCREMENTAL,
- },
- 'sata_interface_downshift': {
- 'options': [None, 'SATA Interface Downshift', 'events', 'external failure',
- 'smartd_log.sata_interface_downshift', 'line'],
- 'lines': [],
- 'attrs': [ATTR183],
- 'algo': INCREMENTAL,
- },
- 'udma_crc_error_count': {
- 'options': [None, 'UDMA CRC Error Count', 'errors', 'external failure', 'smartd_log.udma_crc_error_count',
- 'line'],
- 'lines': [],
- 'attrs': [ATTR199],
- 'algo': INCREMENTAL,
- },
- 'throughput_performance': {
- 'options': [None, 'Throughput Performance', 'value', 'performance', 'smartd_log.throughput_performance',
- 'line'],
- 'lines': [],
- 'attrs': [ATTR2],
- 'algo': ABSOLUTE,
- },
- 'seek_time_performance': {
- 'options': [None, 'Seek Time Performance', 'value', 'performance', 'smartd_log.seek_time_performance', 'line'],
- 'lines': [],
- 'attrs': [ATTR8],
- 'algo': ABSOLUTE,
- },
- 'start_stop_count': {
- 'options': [None, 'Start/Stop Count', 'events', 'power', 'smartd_log.start_stop_count', 'line'],
- 'lines': [],
- 'attrs': [ATTR4],
- 'algo': ABSOLUTE,
- },
- 'power_on_hours_count': {
- 'options': [None, 'Power-On Hours Count', 'hours', 'power', 'smartd_log.power_on_hours_count', 'line'],
- 'lines': [],
- 'attrs': [ATTR9],
- 'algo': ABSOLUTE,
- },
- 'power_cycle_count': {
- 'options': [None, 'Power Cycle Count', 'events', 'power', 'smartd_log.power_cycle_count', 'line'],
- 'lines': [],
- 'attrs': [ATTR12],
- 'algo': ABSOLUTE,
- },
- 'unexpected_power_loss': {
- 'options': [None, 'Unexpected Power Loss', 'events', 'power', 'smartd_log.unexpected_power_loss', 'line'],
- 'lines': [],
- 'attrs': [ATTR174],
- 'algo': ABSOLUTE,
- },
- 'spin_up_time': {
- 'options': [None, 'Spin-Up Time', 'ms', 'spin', 'smartd_log.spin_up_time', 'line'],
- 'lines': [],
- 'attrs': [ATTR3],
- 'algo': ABSOLUTE,
- },
- 'spin_up_retries': {
- 'options': [None, 'Spin-up Retries', 'retries', 'spin', 'smartd_log.spin_up_retries', 'line'],
- 'lines': [],
- 'attrs': [ATTR10],
- 'algo': INCREMENTAL,
- },
- 'calibration_retries': {
- 'options': [None, 'Calibration Retries', 'retries', 'spin', 'smartd_l