+

Fixed error in SMART Health string definition

Benjamin Renard [2011-05-13 13:12:49]
Fixed error in SMART Health string definition
Filename
check_smart
diff --git a/check_smart b/check_smart
index 6549c57..4d1e57e 100644
--- a/check_smart
+++ b/check_smart
@@ -108,7 +108,7 @@ my $found_status = 0;
 my $line_str = 'SMART overall-health self-assessment test result: '; # ATA SMART line
 my $ok_str = 'PASSED'; # ATA SMART OK string

-if ($interface eq 'megaraid'.",".$number or 'scsi'){
+if ($interface eq 'megaraid'.",".$number or $interface eq 'scsi'){
 	$line_str = 'SMART Health Status: '; # SCSI OR MEGARAID SMART line
 	$ok_str = 'OK'; #SCSI OR MEGARAID SMART OK string
 }
ViewGit