From cbb8c06883b94e241352d316b061661cbf8b957b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Oct 2019 20:30:58 +0200 Subject: [PATCH 1/2] Default Critical Wert angepasst --- checks/check_hddtemp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checks/check_hddtemp.sh b/checks/check_hddtemp.sh index c87a6f9..2bca556 100755 --- a/checks/check_hddtemp.sh +++ b/checks/check_hddtemp.sh @@ -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 From 44ae94106911cb04bf59220a51212bd2f1d634ee Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 18 Oct 2019 21:26:08 +0200 Subject: [PATCH 2/2] Fehler, wenn hddtemp nicht gefunde wurde --- checks/check_hddtemp.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/checks/check_hddtemp.sh b/checks/check_hddtemp.sh index 2bca556..866404d 100755 --- a/checks/check_hddtemp.sh +++ b/checks/check_hddtemp.sh @@ -81,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