diff --git a/runchecks.yml b/runchecks.yml index 281bc9c..da6f32c 100644 --- a/runchecks.yml +++ b/runchecks.yml @@ -114,6 +114,10 @@ g_echo_error "SMART of $disk unhealthy: smartctl -H $OPT $disk $(cat ${g_tmp}/smartctl)" fi 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