Check qts-disk-smart

Overview

Checks the disk SMART values returned by a QNAP Appliance running QTS. Disk temperature thresholds are determined automatically.

This check does not run SMART itself. In order to get the latest values, schedule the in-built SMART check in the QTS webinterface.

Hints and Recommendations:

  • Tested on QuTScloud v4.5.6+

  • The user used for monitoring must be a member of the „administrators“ group. It is not sufficient to be a member of the „everyone“ group.

Fact Sheet

Check Plugin Download

https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/qts-disk-smart

Check Interval Recommendation

Every 8 hours

Can be called without parameters

No

Compiled for

Linux, Windows

Help

usage: qts-disk-smart [-h] [-V] [--always-ok] [--insecure] [--no-proxy]
                      --password PASSWORD [--timeout TIMEOUT] --url URL
                      [--username USERNAME]

Checks the disk SMART values returned by QTS.

options:
  -h, --help           show this help message and exit
  -V, --version        show program's version number and exit
  --always-ok          Always returns OK.
  --insecure           This option explicitly allows to perform "insecure" SSL
                       connections. Default: False
  --no-proxy           Do not use a proxy. Default: False
  --password PASSWORD  QTS Password.
  --timeout TIMEOUT    Network timeout in seconds. Default: 6 (seconds)
  --url URL            QTS-based Appliance URL, for example
                       https://192.168.1.1:8080.
  --username USERNAME  QTS User. Default: admin

Usage Examples

./qts-disk-smart --url http://qts:8080 --username admin --password linuxfabrik --insecure

Output:

Checked 12 disks. All are healthy.

* Disk 1 (ST16000NE000-2RW103, SerNo 382jdh237, Temp 46°C)
* Disk 2 (ST16000NE000-2RW103, SerNo 382jdh237, Temp 48°C)
* Disk 3 (ST16000NE000-2RW103, SerNo 382jdh237, Temp 47°C)
* Disk 4 (ST16000NE000-2RW103, SerNo 382jdh237, Temp 44°C)
* Disk 5 (ST12000VN0007-2GS116, SerNo 382jdh237, Temp 43°C)
* Disk 6 (ST12000VN0007-2GS116, SerNo 382jdh237, Temp 43°C)
* Disk 7 (ST12000VN0007-2GS116, SerNo 382jdh237, Temp 42°C)
* Disk 8 (ST12000VN0007-2GS116, SerNo 382jdh237, Temp 40°C)
* PCIe 2 M.2 SSD 1 (FireCuda 520 SSD ZP2000GM30002, SerNo 382jdh237, Temp 48°C)
* PCIe 2 M.2 SSD 2 (FireCuda 520 SSD ZP2000GM30002, SerNo 382jdh237, Temp 49°C)
* PCIe 4 M.2 SSD 1 (FireCuda 520 SSD ZP2000GM30002, SerNo 382jdh237, Temp 47°C)
* PCIe 4 M.2 SSD 2 (FireCuda 520 SSD ZP2000GM30002, SerNo 382jdh237, Temp 48°C)

States

  • OK if all disks are ok.

  • Otherwise WARN.

Perfdata / Metrics

Name

Type

Description

<name>_<model_<serno>_temperature

Number

Temperature in °C

Credits, License