An open API service indexing awesome lists of open source software.

https://github.com/007revad/synology_smart_info

Show Synology smart test progress or smart health and attributes
https://github.com/007revad/synology_smart_info

diskstation hdd hdd-health nvme rackstation smart ssd synology synology-dsm synology-nas

Last synced: 5 months ago
JSON representation

Show Synology smart test progress or smart health and attributes

Awesome Lists containing this project

README

          

# Synology SMART info



[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/paypalme/007revad)
[![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/007revad)
[![committers.top badge](https://user-badge.committers.top/australia/007revad.svg)](https://user-badge.committers.top/australia/007revad)

### Description

Show Synology smart test progress or smart health and attributes.

The script works in DSM 7, including DSM 7.2, and DSM 6.

## Download the script

1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_SMART_info/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.

## How to run the script

### Run the script via SSH

[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)

Run the script:

```bash
sudo -s /volume1/scripts/syno_smart_info.sh
```

> **Note**

> Replace /volume1/scripts/ with the path to where the script is located.

To see all the SMART attributes run the script with the -a or --all option:

```bash
sudo -s /volume1/scripts/syno_smart_info.sh --all
```

> **Note**

> The script automatically shows all SMART attributes for any drives that don't return "SMART test passed".

### Scheduling the script in Synology's Task Scheduler

See How to schedule a script in Synology Task Scheduler

### Options when running the script

There are optional flags you can use when running the script:
```YAML
-a, --all Show all SMART attributes
-e, --email Disable colored text in output scheduler emails
-h, --help Show this help message
-v, --version Show the script version
```

## Optional for Seagate drives

If you have Seagate drives you should install SynoCommunity's [SynoCli Disk Tools v4.0-13 or later](https://synocommunity.com/package/synocli-disk) package so this script can decode the values of Seagate's SMART attributes 1, 7 and 195. SynoCli Disk Tools v4.0-13 includes smartmontools v7.4

Seagate HDD with DSM's smartctl 6.5


Seagate HDD with SynoCommunity's smartctl 7.4


## Screenshots

All healthy


One drive marginal


UDMA CRC Errors


NVMe drives removed while NAS was running


SSD with reallocated sectors


HDD and SSD when run with --all option


HDD and NVMe when run with --all option