[Pkg-nagios-devel] Bug#1010038: monitoring-plugins-basic: check_ide_smart introduces risk of data loss

Antonio Trueba atgayol at gmail.com
Fri Apr 22 21:22:35 BST 2022


Package: monitoring-plugins-basic
Severity: normal
Tags: upstream
X-Debbugs-Cc: atgayol at gmail.com

Dear maintainer,

I've been relying on check_ide_smart for some time to monitor my HDDs and up to
now there has never been a malfunction reported, with all disks being reported
as passing all tests and in the OK status. While setting up a new server I've
found two issues with this plugin that I think should be enough to mark it as
deprecated, both in Debian and in upstream:

- It just doesn't recognize drives connected through an HBA, even though
smartctl does. This is a known limitation of the plugin.

- When using a more up to date alternative, I've found that some of the HDDs
that check_ide_smart was reporting as OK have in fact reached some pre-failure
conditions and are worth replacing. This isn't related to the hardware
interface as those drives are in production and have been monitored with
check_ide_smart for quite some time, I've just changed the monitoring plugin.


So, as check_ide_smart isn't properly reporting HDD status (or, at least,
failing to report early warnings) I believe keeping it available as is
introduces the risk for a potential data loss. There are alternatives
available, so I suggest to consider substituting the plugin instead of updating
it. The best I've found is Kurt Yoder and Claudio Kuenzler's check_smart[1][2],
but I'm not sure of the licensing status (the code shows that "This script was
initially created under contract for the US Government and is therefore Public
Domain", but there's no specific license mentioned).


Regards.


[1]https://www.claudiokuenzler.com/monitoring-plugins/check_smart.php
[2]https://exchange.nagios.org/directory/Plugins/System-Metrics/Storage-
Subsystem/check_smart-2Epl--2D-physical-drive-monitoring/details


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (100, 'bullseye-fasttrack'), (100, 'bullseye-backports-staging')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages monitoring-plugins-basic depends on:
ii  iputils-ping               3:20211215-1
ii  libc6                      2.33-7
ii  libssl1.1                  1.1.1n-1
pn  monitoring-plugins-common  <none>
ii  procps                     2:3.3.17-7+b1
ii  ucf                        3.0043

Versions of packages monitoring-plugins-basic recommends:
ii  libcap2-bin  1:2.44-1

Versions of packages monitoring-plugins-basic suggests:
pn  icinga2  <none>



More information about the Pkg-nagios-devel mailing list