Skip to content

Commit

Permalink
quick hack: ignore seagate temperature persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
eltismerino committed Aug 11, 2015
1 parent c0a0c92 commit 9a7d7bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion check_smart.pl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ BEGIN
# 9 Power_On_Minutes 0x0032 241 241 000 Old_age Always - 113h+12m
next unless $line =~ /^\s*\d+\s(\S+)\s+(?:\S+\s+){6}(\S+)\s+(\d+)/;
my ($attribute_name, $when_failed, $raw_value) = ($1, $2, $3);
if ($when_failed ne '-'){
if ($when_failed ne '-' &&
($attribute_name ne 'Airflow_Temperature_Cel' || ($attribute_name eq 'Airflow_Temperature_Cel' && $when_failed ne 'In_the_past')) &&
($attribute_name ne 'Temperature_Celsius' || ($attribute_name eq 'Temperature_Celsius' && $when_failed ne 'In_the_past'))
){
push(@error_messages, "Attribute $attribute_name failed at $when_failed");
escalate_status('WARNING');
warn "(debug) parsed SMART attribute $attribute_name with error condition:\n$when_failed\n\n" if $opt_debug;
Expand Down

0 comments on commit 9a7d7bf

Please sign in to comment.