temperature check fix
This commit is contained in:
parent
a1449c9b4b
commit
664e69df32
@ -113,11 +113,11 @@
|
||||
then
|
||||
g_echo_error "SMART of $disk unhealthy: smartctl -H $OPT $disk $(cat ${g_tmp}/smartctl)"
|
||||
fi
|
||||
# temperature check
|
||||
temperature=$(smartctl -x $OPT $disk | perl -pe 's/ +/ /g; s/^ //' | egrep "^194 Temperature_Celsius " | cut -d" " -f 8)
|
||||
[ -z "$temperature" ] && continue
|
||||
[ $temperature -gt 65 ] && g_echo_error "SMART temperature of disk $disk high ($temperature Celsius)"
|
||||
fi
|
||||
# temperature check
|
||||
temperature=$(smartctl -x $OPT $disk | egrep "^Current Temperature" | perl -pe 's/ +/ /g' | cut -d" " -f3)
|
||||
[ -z "$temperature" ] && continue
|
||||
[ $temperature -gt 65 ] && g_echo_error "SMART temperature of disk $disk high ($temperature Celsius)"
|
||||
done
|
||||
validate: /bin/bash -n %s
|
||||
backup: yes
|
||||
|
Loading…
Reference in New Issue
Block a user