Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package monitoring-plugins-smart for 
openSUSE:Factory checked in at 2025-07-15 16:44:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-smart (Old)
 and      /work/SRC/openSUSE:Factory/.monitoring-plugins-smart.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "monitoring-plugins-smart"

Tue Jul 15 16:44:41 2025 rev:15 rq:1293214 version:6.16.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-smart/monitoring-plugins-smart.changes
        2025-02-05 17:23:27.194304258 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-smart.new.7373/monitoring-plugins-smart.changes
      2025-07-15 16:46:25.526001463 +0200
@@ -1,0 +2,6 @@
+Wed Jun 18 11:22:44 UTC 2025 - Martin Hauke <mar...@gmx.de>
+
+- Update to 6.16.0
+  * Added support of devices behind usbjmicron bridge (#109).
+
+-------------------------------------------------------------------

Old:
----
  check_smart-6.15.0.tar.gz

New:
----
  check_smart-6.16.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ monitoring-plugins-smart.spec ++++++
--- /var/tmp/diff_new_pack.0OwV4S/_old  2025-07-15 16:46:26.022021564 +0200
+++ /var/tmp/diff_new_pack.0OwV4S/_new  2025-07-15 16:46:26.022021564 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           monitoring-plugins-smart
-Version:        6.15.0
+Version:        6.16.0
 Release:        0
 Summary:        Check SMART status of a given disk
 License:        GPL-3.0-or-later

++++++ check_smart-6.15.0.tar.gz -> check_smart-6.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check_smart-6.15.0/check_smart.pl 
new/check_smart-6.16.0/check_smart.pl
--- old/check_smart-6.15.0/check_smart.pl       2025-01-31 07:21:12.000000000 
+0100
+++ new/check_smart-6.16.0/check_smart.pl       2025-06-12 07:04:12.000000000 
+0200
@@ -63,13 +63,14 @@
 # Mar 15, 2024: Yannick Martin - Fix nvme check when auto interface is given 
and device is nvme (6.14.2)
 # Sep 10, 2024: Claudio Kuenzler - Fix performance data format, missing 
perfdata in SCSI drives (6.14.3)
 # Jan 31, 2025: Tomas Barton - Ignore old age attributes due to its 
unrealiability. Check ATA error logs (6.15.0)
+# Jun 12, 2025: Alexander Kanevskiy - Add usbjmicron devices (6.16.0)
 
 use strict;
 use Getopt::Long;
 use File::Basename qw(basename);
 
 my $basename = basename($0);
-my $revision = '6.15.0';
+my $revision = '6.16.0';
 
 # Standard Nagios return codes
 my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);
@@ -153,7 +154,7 @@
         # Allow all device types currently supported by smartctl
         # See http://www.smartmontools.org/wiki/Supported_RAID-Controllers
 
-        if ($opt_i =~ 
m/^(ata|scsi|3ware|areca|hpt|aacraid|cciss|megaraid|sat|auto|nvme)/) {
+        if ($opt_i =~ 
m/^(ata|scsi|3ware|areca|hpt|aacraid|cciss|megaraid|sat|auto|nvme|usbjmicron)/) 
{
             $interface = $opt_i;
           if($interface =~ m/megaraid,\[(\d{1,2})-(\d{1,2})\]/) {
             $interface = "";
@@ -179,6 +180,12 @@
               $interface .= "aacraid," . $k . "|";
             }
           }
+          elsif($interface =~ m/usbjmicron,\[(\d{1,2})-(\d{1,2})\]/) {
+            $interface = "";
+            for(my $k = $1; $k <= $2; $k++) {
+              $interface .= "usbjmicron," . $k . "|";
+            }
+          }
           else {
             $interface .= "|";
           }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check_smart-6.15.0/contrib/icinga2-command.conf 
new/check_smart-6.16.0/contrib/icinga2-command.conf
--- old/check_smart-6.15.0/contrib/icinga2-command.conf 1970-01-01 
01:00:00.000000000 +0100
+++ new/check_smart-6.16.0/contrib/icinga2-command.conf 2025-06-12 
07:04:12.000000000 +0200
@@ -0,0 +1,87 @@
+/*
+ * Icinga2 CheckCommand definition for check_smart (check_smart.pl) monitoring 
plugin
+ * See https://www.claudiokuenzler.com/monitoring-plugins/check_smart.php
+*/
+
+object CheckCommand "check_smart" {
+       import "plugin-check-command"
+       command = [ "/usr/sbin/sudo", PluginContribDir + "/check_smart.pl" ]
+       arguments = {
+               "-d" = {
+                       value = "$smart_device$"
+                       set_if = {{ macro("$smart_device_is_glob$") == false }}
+                       description = "A physical block device to be SMART 
monitored, eg /dev/sda."
+               }
+               "-g" = {
+                       value = "$smart_device$"
+                       set_if = {{ macro("$smart_device_is_glob$") == true }}
+                       description = "A glob expression of physical devices to 
be monitored, eg -g '/dev/sd[a-z]'."
+               }
+               "-i" = {
+                       value = "$smart_interface$"
+                       description = "Drive's interface type, must be one of: 
auto, ata, scsi, nvme, 3ware,N, areca,N, hpt,L/M/N, cciss,N, megaraid,N."
+                       required = true
+               }
+               "-r" = {
+                       value = "$smart_raw_list$"
+                       description = "List (comma separated, without spaces!) 
of SMART attributes to check for their raw values."
+               }
+               "-e" = {
+                       value = "$smart_exclude_list$"
+                       description = "List of (comma separated) SMART 
attributes which should be excluded (=ignored) from checks, but still appear in 
perfdata."
+               }
+               "-E" = {
+                       value = "$smart_exclude_all_list$"
+                       description = "List of (comma separated) SMART 
attributes which should be excluded (=ignored) completely from checks and 
perfdata."
+               }
+               "-b" = {
+                       value = "$smart_bad$"
+                       description = "Threshold value (integer) when to warn 
for N bad entries (ATA: Current Pending Sector, SCSI: Grown defect list). Note: 
Deprecated for ATA drives, use `smart_warn` instead. Continue to use this for 
SCSI drives."
+               }
+               "-w" = {
+                       value = "$smart_warn$"
+                       description = "Comma separated list of thresholds for 
ATA drives (e.g. `'Reallocated_Sector_Ct=10,Current_Pending_Sector=62'`)."
+               }
+               "-s" = {
+                       set_if = "$smart_selftest$"
+                       description = "If set to true, additionally check 
SMART's selftest log for errors."
+               }
+               "-l" = {
+                       set_if = "$smart_ssd_lifetime$"
+                       description = "If set to true, additionally check SSD 
attribute Percent_Lifetime_Remain."
+               }
+               "-O" = {
+                       set_if = "$smart_oldage$"
+                       description = "If set to true, ignore certain oldage 
attributes related to the drive's usage (not recommended)."
+               }
+               "-q" = {
+                       set_if = "$smart_quiet$"
+                       description = "If set to true, only show failing 
drive(s) when faults are detected (only affects output when used with 
`vars.smart_device_is_glob`)."
+               }
+               "--hide-sn" = {
+                       set_if = "$smart_hide_sn$"
+                       description = "If set to true, output does not reveal 
serial number of drive(s)."
+               }
+               "--skip-self-assessment" = {
+                       set_if = "$smart_skip_self_assessment$"
+                       description = "If set to true, skip the SMART self 
assessment health check (not recommended)."
+               }
+               "--skip-temp-check" = {
+                       set_if = "$smart_skip_temp_check$"
+                       description = "If set to true, skip temperature 
comparison current vs. drive max temperature (not recommended)."
+               }
+               "--skip-load-cycles" = {
+                       set_if = "$smart_skip_load_cycles$"
+                       description = "If set to true, skip check of SMART 
attribute 193 (Load_Cycle_Count), deemed unsafe after reaching 600K load/unload 
cycles."
+               }
+               "--skip-error-log" = {
+                       set_if = "$smart_skip_error_log$"
+                       description = "If set to true, skip check of SMART 
Error Log (not recommended)."
+               }
+       }
+       vars.smart_interface = "auto"
+       vars.smart_device_is_glob = false
+       vars.smart_selftest = false
+       vars.smart_ssd_lifetime = false
+       vars.smart_quiet = false
+}

Reply via email to