155 Commits

Author SHA1 Message Date
Napsty
b0572376e3 Bump version 6.17.0
Some checks failed
Launch help / validate (push) Has been cancelled
6.17.0
2025-12-15 19:16:02 +01:00
kapouik
2cdec36322 add areca support for multi device (#112)
Co-authored-by: Philippe Beaumont <philippe.beaumont@nfrance.com>
2025-12-15 19:10:52 +01:00
Florian Sager
27341d90fc Fix evaluating ATA Error Count: 0 as a warning (#111)
Some checks failed
Launch help / validate (push) Has been cancelled
2025-10-03 05:05:46 -04:00
Napsty
e691677697 Bump version
Some checks failed
Launch help / validate (push) Has been cancelled
6.16.0
2025-06-12 07:04:12 +02:00
Alexander D. Kanevskiy
6ffcf894de Add support for usbjmicron devices (#109)
Allows to monitor hard drives attached via USB-SATA enclosures.
2025-06-12 07:01:53 +02:00
Napsty
b09f4f280d Update Icinga2 check_smart CheckCommand definition 2025-01-31 14:15:10 +01:00
Napsty
886eee04d4 Update Icinga2 check_smart CheckCommand definition 2025-01-31 13:35:09 +01:00
Claudio Kuenzler
14650996ac Add Icinga2 check_smart CheckCommand definition (#105) 2025-01-31 13:26:42 +01:00
Claudio Kuenzler
a6cdc663a9 Add --skip-error-log to help (#104) 6.15.0 2025-01-31 07:21:12 +01:00
Tomas Barton
e37f2f60a2 Check error log for ATA errors (#102) 2025-01-31 07:04:35 +01:00
Tomas Barton
58db83dd8a Ignore old age attributes (#101)
* Ignore old age attribute on NVMe

Critical_Warning attribute with `0x04` value hold only litte information
With `-O` arg the value will be simply ignored.
In most cases "Percentage Used" being above 100% triggers this warning. This only means that the drive's warranty from the manufacturer is over.
But as long as 'Available Spare' is greater than 'Available Spare Threshold', you can safely ignore this message.

* Skip Percent_Lifetime_Used on SSD disks

Attribute `Percent_Lifetime_Used` is not very reliable health indicator
2024-09-11 17:37:42 +02:00
Claudio Kuenzler
09abe35238 Fix performance data format, missing perfdata in SCSI drives (#100) 6.14.3 2024-09-10 07:50:49 +02:00
Claudio Kuenzler
1fde405029 Update SSD-TBW-Warranty.md 2024-09-09 08:32:32 +02:00
Napsty
3b28cda0db Minor modification in changelog for release date 6.14.2 2024-03-15 06:55:33 +01:00
ymartin-ovh
90e102c034 Fix nvme attribute check-list when auto interface is given and device is nvme (#97) 2024-03-15 06:52:37 +01:00
Claudio Kuenzler
33171bfe44 Fix debug output for raw check list, fix --hide-serial in debug output (#94) 6.14.1 2023-09-20 14:50:07 +02:00
ymartin-ovh
394f96e7fd Fix default Percent_Lifetime_Remain threshold handling when -w is given (issue #92) (#93)
Address issue when threshold is not set in the following case:
  check_smart -i auto -g '/dev/sda' -w Reallocated_Sector_Ct=250 -l

  Instead of 90, the threshold is 0 when -w is given without
  Percent_Lifetime_Remain threshold.
2023-09-20 14:09:26 +02:00
Napsty
4e2d7d2aae Bump version, changelog 6.14.0 2023-04-29 11:40:58 +02:00
Claudio Kuenzler
80100cafe0 Add Load_Cycle_Count check (#91) 2023-04-29 11:35:13 +02:00
Claudio Kuenzler
a40b073da5 Add --hide-sn parameter (#90) 2023-04-29 10:25:51 +02:00
Nick Bertrand
e352544839 Display messages for drives with UNKNOWN status (#89) 2023-04-29 10:03:13 +02:00
Claudio Kuenzler
81d7437de8 Update SSD-TBW-Warranty.md 2023-02-15 18:43:10 +01:00
Claudio Kuenzler
aebd01c779 Update SSD-TBW-Warranty.md 2023-02-14 07:59:02 +01:00
Claudio Kuenzler
a991f73782 Update SSD-TBW-Warranty.md 2023-02-14 07:47:48 +01:00
Claudio Kuenzler
0f169c57b6 SSD Warranty List (#88)
* Create SSD-TBW-Warranty.md
2023-02-13 15:11:36 +01:00
Claudio Kuenzler
4192cd7934 Adding NVMe example 2022-12-05 07:59:39 +00:00
Napsty
8ea721d6d8 Bump version 6.13.0 2022-04-27 04:29:21 +02:00
Claudio Kuenzler
11c1256d64 Allow skip temperature check (--skip-temp-check) (#83)
* Allow skip temperature check (--skip-temp-check)

* Update help
2022-04-27 04:24:55 +02:00
Peter Newman
9619f4d853 Add another glob example (#85)
Add the excellent suggestion from #21
2022-04-27 04:24:21 +02:00
Peter Newman
c1bf0256c4 Specifically search for the smartctl command and alert if it's missing (#84)
* Specifically search for the smartctl command and alert if it's missing

* Fix the quotes!

* Improve the wording of the error message
2022-04-27 04:24:00 +02:00
Napsty
b3ac7675de Bump version 6.12.2 2021-12-16 08:48:10 +01:00
Lorenz
806a584c74 Escape $ so the actual variable name is printed (#79)
Handle missing `-i` parameter for `-g` devices, too.
2021-12-16 08:44:43 +01:00
Claudio Kuenzler
e071eb06a9 Bugfix in interface handling (6.12.1) (#77) 6.12.1 2021-12-10 14:06:10 +01:00
Napsty
35582f0eb0 Add mentioned license file 2021-12-10 09:16:41 +01:00
Claudio Kuenzler
dc59dedff6 6.12.0 (#75)
* Security fix in trailing path for pseudo-devices

* Additional anchor for security

* Update help

* Add Erase_Fail_Count_Total to default raw list

* Fix NVMe perfdata (issue 74)

* Release today
6.12.0
2021-12-10 08:37:06 +01:00
Claudio Kuenzler
578586bdd2 Update check_smart.pl 6.11.0 2021-10-04 13:11:08 +02:00
Claudio Kuenzler
317f870064 6.11 (#72)
* Handle dots in nvme attributes and differ between critical and warning output

* Fix string concatenation

* Show any warnings or errors which may have been muted in -g mode (#71)

* Additional status sorting, per alert and per drive

* Release commit for 6.11

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
2021-10-04 13:07:25 +02:00
Claudio Kuenzler
956f236eb3 Add aacraid support (#69)
* Add aacraid support

* Bump release date
6.10.0
2021-07-06 07:25:16 +02:00
Claudio Kuenzler
3d96f00d1e Fix regex for pseudo-devices (#68)
* Fix regex for pseudo-devices

* Bump release date
6.9.1
2021-04-08 09:59:56 +02:00
Claudio Kuenzler
425caa7734 6.9.0 (#67)
* Remove 'Command_Timeout' from raw list, add Percent_Lifetime_Remain attribute with default warn at 90 percent

* SSD Lifetime check optional with parameter -l

* Fix warning of already initialized variable
6.9.0
2021-03-04 07:49:46 +01:00
Evan Felix
69f7c12040 change delimeter so that colons work in device paths (#64) 2021-03-03 13:59:19 +01:00
Claudio Kuenzler
7215b650fc Allow skip self-assessment check (--skip-self-assessment) (#59)
* Allow skip self-assessment check (--skip-self-assessment)

* Add Command_Timeout to default raw list

* Add Command_Timeout to default raw list
6.8.0
2020-10-14 16:04:52 +02:00
Claudio Kuenzler
bb1543667b Bugfix to make --warn work (#56) 6.7.1 2020-06-02 14:32:54 +02:00
Claudio Kuenzler
b620a03f6e Nvme (#51)
* Add support for NVMe devices

* Improve regex for nvme smart attributes

* Check Critical_Warning attribute before other attributes

* Add model detection for nvme

* Fix regex to support hex status like 0x0A

* Use Power_On_Hours in perfdata

* Release 6.7.0
6.7.0
2020-03-25 13:54:57 +01:00
Napsty
e1407030eb Bump version to 6.6.1 6.6.1 2019-12-04 07:36:18 +01:00
Ander Punnar
7075f5c989 fix regex deprecation warning when {} is used (#50)
unescaped left brace in regex is deprecated (and will be fatal in Perl 5.30)
2019-12-04 07:26:58 +01:00
Claudio Kuenzler
dbd9470285 Update README.md 2019-11-29 14:44:13 +01:00
Claudio Kuenzler
6199f89d40 Make -g option available for 3ware and cciss controllers (#49)
The feature was requested in #30 . This PR adds the possibility to use 3ware,N and cciss,N drives in combination with the global -g parameter.

Furthermore this PR adjusts the output of the plugin when the -g is used in combination with hardware raid controllers. Instead of showing the logical device name (/dev/sda for example), the plugin will now show the controller with drive number.
6.6.0
2019-11-29 13:31:45 +01:00
Claudio Kuenzler
a9a5e7bba9 Trying my luck with github actions 2019-11-25 21:03:35 +01:00
Claudio Kuenzler
80f9d30e3d Trying my luck with github actions 2019-11-25 20:59:52 +01:00