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')
|
OUTTEMPCLEAN=$(echo "$OUTTEMP" | tr -dc '0-9')
|
||||||
|
|
||||||
#Debug
|
#Debug
|
||||||
#echo -e "OUTDEV:\t$OUTDEV"
|
#echo -e "OUTDEV:\t$\"OUTDEV\""
|
||||||
#echo -e "OUTDEVmodel:\t$OUTDEVmodel"
|
#echo -e "OUTMODEL:\t$OUTMODEL\""
|
||||||
#echo -e "OUTTEMP:\t$OUTTEMP"
|
#echo -e "OUTTEMP:\t\"$OUTTEMP\""
|
||||||
#echo -e "OUTTEMPCLEAN:\t$OUTTEMPCLEAN"
|
#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
|
#Erstellen des Perfdata-Results
|
||||||
if [ -n "$PERFDATA" ]
|
if [ -n "$PERFDATA" ]
|
||||||
@ -196,6 +204,16 @@ do
|
|||||||
else
|
else
|
||||||
exitausgabe="1"
|
exitausgabe="1"
|
||||||
fi
|
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" ]
|
elif [ "$OUTTEMPCLEAN" -ge "$CRITICAL" ]
|
||||||
then
|
then
|
||||||
#CRITICAL - Status
|
#CRITICAL - Status
|
||||||
|
Loading…
Reference in New Issue
Block a user