Added exception for errors In_the_past
Benjamin Renard

Benjamin Renard commited on 2011-05-13 13:13:46
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -209,7 +209,7 @@ if ($interface eq 'ata'){
209 209
 		#    9 Power_On_Minutes        0x0032   241   241   000    Old_age   Always       -       113h+12m
210 210
 		next unless $line =~ /^\s*\d+\s(\S+)\s+(?:\S+\s+){6}(\S+)\s+(\d+)/;
211 211
 		my ($attribute_name, $when_failed, $raw_value) = ($1, $2, $3);
212
-		if ($when_failed ne '-'){
212
+		if ($when_failed ne '-' && $when_failed ne 'In_the_past'){
213 213
 			push(@error_messages, "Attribute $attribute_name failed at $when_failed");
214 214
 			escalate_status('WARNING');
215 215
 			warn "(debug) parsed SMART attribute $attribute_name with error condition:\n$when_failed\n\n" if $opt_debug;
216 216