Added NVME SMART Status support

NVME disks are located elsewhere. Added command for nvme.
This commit is contained in:
Prins Geryha
2022-08-17 20:50:23 +02:00
parent 0e6ea86930
commit 761000c441

View File

@ -3,6 +3,7 @@ if [ "$1" = "-g" ]
then
echo .1.3.6.1.2.1.25.1.10
echo STRING
smartctl -H /dev/sda | grep "PASSED" | nawk '{print $6}'
if
smartctl -H /dev/sda | grep "PASSED" | nawk '{print $6}' && smartctl -H /dev/nvme0n1p3 | grep "PASSED" | nawk '{print $6}'
fi
exit 0