„runchecks.yml“ ändern
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
smartctl -H $OPT $disk >${g_tmp}/smartctl
|
smartctl -H $OPT $disk >${g_tmp}/smartctl
|
||||||
if ! cat ${g_tmp}/smartctl | egrep -iq "SMART overall-health self-assessment test result: PASSED|SMART Health Status: OK|Read Device Identity failed: scsi error no medium present"
|
if ! cat ${g_tmp}/smartctl | egrep -iq "SMART overall-health self-assessment test result: PASSED|SMART Health Status: OK|Read Device Identity failed: scsi error no medium present"
|
||||||
then
|
then
|
||||||
g_echo_error "SMART of $disk unhealthy: $(cat ${g_tmp}/smartctl)"
|
g_echo_error "SMART of $disk unhealthy: smartctl -H $OPT $disk $(cat ${g_tmp}/smartctl)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user