Update smartoverall plugin for unsupported logging
This commit is contained in:
parent
51e51733a7
commit
0eaf0e8f6f
|
@ -160,6 +160,9 @@ https://www.smartmontools.org/wiki/FAQ#SmartmontoolsDatabase"
|
||||||
if smartctl -d "${TYPE}" -l selftest "${DISK}" | grep -qi -- "No self-tests"; then
|
if smartctl -d "${TYPE}" -l selftest "${DISK}" | grep -qi -- "No self-tests"; then
|
||||||
DSELFTEST_MSG="&red No self-tests recorded:"
|
DSELFTEST_MSG="&red No self-tests recorded:"
|
||||||
DCODE="8"
|
DCODE="8"
|
||||||
|
## If the device doesn't support test logging
|
||||||
|
elif smartctl -d "${TYPE}" -l selftest "${DISK}" | grep -qEi -- "does not support.*logging"; then
|
||||||
|
DSELFTEST_MSG="&clear Test logging are not supported:"
|
||||||
else
|
else
|
||||||
DSELFTEST_MSG=""
|
DSELFTEST_MSG=""
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue