This commit is contained in:
Patrick Schindelmann
2019-10-21 16:17:23 +02:00

View File

@@ -12,13 +12,14 @@
# - options in linux style
# - it should do its job perfectly
#
# The warning and critical values are from a 2007 Google study (Failure Trends in a Large Disk Drive Population)
#
################################################################################
HDDTEMP="/usr/sbin/hddtemp"
PARAMETER="$*"
WARNING="40"
CRITICAL="50"
CRITICAL="45"
function hilfetext(){
cat <<- EOF
@@ -80,6 +81,7 @@ function ParameterEvaluation(){
if [ ! -x "$HDDTEMP" ]
then
echo "hddtemp nicht gefunden"
exit 1
fi
#Wenn keine Option oder Argument angegeben wurde, wird die Hilfe ausgegeben