Fehlerfall "no S.M.A.R.T. Device" behoben
This commit is contained in:
parent
1918adb9c6
commit
ddf6514b41
@ -161,10 +161,18 @@ do
|
||||
OUTTEMPCLEAN=$(echo "$OUTTEMP" | tr -dc '0-9')
|
||||
|
||||
#Debug
|
||||
#echo -e "OUTDEV:\t$OUTDEV"
|
||||
#echo -e "OUTDEVmodel:\t$OUTDEVmodel"
|
||||
#echo -e "OUTTEMP:\t$OUTTEMP"
|
||||
#echo -e "OUTTEMPCLEAN:\t$OUTTEMPCLEAN"
|
||||
#echo -e "OUTDEV:\t$\"OUTDEV\""
|
||||
#echo -e "OUTMODEL:\t$OUTMODEL\""
|
||||
#echo -e "OUTTEMP:\t\"$OUTTEMP\""
|
||||
#echo -e "OUTTEMPCLEAN:\t\"$OUTTEMPCLEAN\""
|
||||
|
||||
if [ -z "$OUTTEMPCLEAN" ]
|
||||
then
|
||||
#Sollte es keinen SMART-Status geben, wird eine Tempoeratur von 999 ausgegeben
|
||||
#Debug
|
||||
#It's not a digit
|
||||
OUTTEMPCLEAN="999"
|
||||
fi
|
||||
|
||||
#Erstellen des Perfdata-Results
|
||||
if [ -n "$PERFDATA" ]
|
||||
@ -196,6 +204,16 @@ do
|
||||
else
|
||||
exitausgabe="1"
|
||||
fi
|
||||
elif [ "$OUTTEMPCLEAN" = "999" ]
|
||||
then
|
||||
#CRITICAL - Status (kein S.M.A.R.T. verfügbar)
|
||||
ausgabe+="$OUTMODEL on $OUTDEV - no S.M.A.R.T.-Status "
|
||||
if [ "$exitausgabe" -gt "2" ]
|
||||
then
|
||||
echo do nothing
|
||||
else
|
||||
exitausgabe="2"
|
||||
fi
|
||||
elif [ "$OUTTEMPCLEAN" -ge "$CRITICAL" ]
|
||||
then
|
||||
#CRITICAL - Status
|
||||
|
Loading…
Reference in New Issue
Block a user