diff --git a/gray-theme/lang/en b/gray-theme/lang/en
index 5b94daebe..6ee1ffc6e 100644
--- a/gray-theme/lang/en
+++ b/gray-theme/lang/en
@@ -20,6 +20,7 @@ right_cpuinfo=Processor information
right_cputemps=CPU temperatures
right_drivetemps=Drive temperatures
right_driveerr=$1 errors!
+right_drivefailed=SMART check failed!
right_cputype=$5, $8 cores
right_load=$1 (1 min) $2 (5 mins) $3 (15 mins)
right_cpuuse=CPU usage
diff --git a/gray-theme/right.cgi b/gray-theme/right.cgi
index 87f342b31..2338153ce 100755
--- a/gray-theme/right.cgi
+++ b/gray-theme/right.cgi
@@ -99,8 +99,13 @@ if ($level == 0) {
my $emsg;
if ($t->{'errors'}) {
$emsg .= " (".
- &text('right_driveerr', $t->{'errors'}).
- ")";
+ &text('right_driveerr', $t->{'errors'}).
+ ")";
+ }
+ elsif ($t->{'failed'}) {
+ $emsg .= " (".
+ $text{'right_drivefailed'}.
+ ")";
}
push(@temps, $short.": ".$t->{'temp'}."℃".$emsg);
}
diff --git a/system-status/system-status-lib.pl b/system-status/system-status-lib.pl
index 624264fe7..0f428c75a 100755
--- a/system-status/system-status-lib.pl
+++ b/system-status/system-status-lib.pl
@@ -389,7 +389,8 @@ if (!$config{'collect_notemp'} &&
$a->[1] > 0) {
push(@rv, { 'device' => $d->{'device'},
'temp' => int($a->[1]),
- 'errors' => $st->{'errors'} });
+ 'errors' => $st->{'errors'},
+ 'failed' => !$st->{'check'} });
}
}
}