1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2026-01-04 17:13:14 +00:00

Nail down disk temp selection by using "194 Temperature_Celsius"

This commit is contained in:
Keith Nash
2017-04-03 11:46:22 -05:00
committed by GitHub
parent 9be08e309f
commit aa2ce1067e
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ for drive in $drives; do
awk -v device="${drive}" -v tempWarn=${tempWarn} -v tempCrit=${tempCrit} -v sectorsCrit=${sectorsCrit} \
-v warnSymbol="${warnSymbol}" -v critSymbol=${critSymbol} '
/Serial Number:/{serial=$3}
/Temperature_Celsius/{temp=$10}
/194 Temperature_Celsius/{temp=$10}
/Power_On_Hours/{split($10,a,"+");sub(/h/,"",a[1]);onHours=a[1];}
/Start_Stop_Count/{startStop=$10}
/Spin_Retry_Count/{spinRetry=$10}