From bf12a45ab9ac549a19d283816cae87b5cd62d6fe Mon Sep 17 00:00:00 2001 From: Elyrith Date: Sat, 5 Oct 2013 23:33:19 -0400 Subject: [PATCH 1/3] README and THANKS updates. --- README | 4 ++++ THANKS | 0 2 files changed, 4 insertions(+) mode change 100755 => 100644 README mode change 100755 => 100644 THANKS diff --git a/README b/README old mode 100755 new mode 100644 index 58c98b8..dff2e25 --- a/README +++ b/README @@ -27,6 +27,10 @@ press to have it use the default option for each check. There is a warning in the manpages (man sensors-detect) that there are (some rare) hardware sensors that may lock up or even be permanently damaged, so be aware of that. + +********** +MAKE SURE YOU TYPE "YES" TO THE LAST OPTION: "Do you want to add these lines automatically to /etc/modules? (yes/NO)" +********** 3) Restart module-init-tools service (On Debian/Ubuntu) a) /etc/init.d/module-init-tools restart diff --git a/THANKS b/THANKS old mode 100755 new mode 100644 From 664cac69654191b33b96f58773f1ab9c122af16e Mon Sep 17 00:00:00 2001 From: Elyrith Date: Sat, 5 Oct 2013 23:37:59 -0400 Subject: [PATCH 2/3] Typo and changed 'sensors' to 'lm-sensors' in message if it's not installed. --- check_temp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_temp.sh b/check_temp.sh index f7837a4..40480d5 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -75,9 +75,9 @@ Options: Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU. -w INTEGER - Exit with WARNING status if above INTEGER degres + Exit with WARNING status if above INTEGER degrees -c INTEGER - Exit with CRITICAL status if above INTEGER degres + Exit with CRITICAL status if above INTEGER degrees EOT } @@ -93,7 +93,7 @@ sensor=CPU # See if we have sensors program installed and can execute it if [[ ! -x "$SENSORPROG" ]]; then - printf "\nIt appears you don't have sensors installed in $SENSORPROG\n" + printf "\nIt appears you don't have lm-sensors installed in $SENSORPROG\n" exit $STATE_UNKOWN fi From 6b1c3b0d95ec28f0bf3afb0a6d6915b14048484a Mon Sep 17 00:00:00 2001 From: Elyrith Date: Sat, 5 Oct 2013 23:39:34 -0400 Subject: [PATCH 3/3] Fix typo: If lm-sensors is not installed, it would exit with OK instead of UNKNOWN. --- check_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_temp.sh b/check_temp.sh index 40480d5..5f779a1 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -94,7 +94,7 @@ sensor=CPU # See if we have sensors program installed and can execute it if [[ ! -x "$SENSORPROG" ]]; then printf "\nIt appears you don't have lm-sensors installed in $SENSORPROG\n" - exit $STATE_UNKOWN + exit $STATE_UNKNOWN fi # Parse command line options