mirror of
https://github.com/Spearfoot/FreeNAS-scripts
synced 2025-12-06 01:23:19 +00:00
Added last test age to warnings
This commit is contained in:
@@ -95,7 +95,7 @@ for drive in $drives; do
|
||||
testAge=sprintf("%.0f", (onHours - lastTestHours) / 24);
|
||||
if (temp > tempCrit || reAlloc > sectorsCrit || pending > sectorsCrit || offlineUnc > sectorsCrit)
|
||||
device=device " " critSymbol;
|
||||
else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0)
|
||||
else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0 || testAge > testAgeWarn)
|
||||
device=device " " warnSymbol;
|
||||
seekErrors=sprintf("%d", seekErrors);
|
||||
totalSeeks=sprintf("%d", totalSeeks);
|
||||
|
||||
Reference in New Issue
Block a user