From 39313dffacd8197cf0c12dec17c26f83b32f6038 Mon Sep 17 00:00:00 2001 From: Elyrith Date: Tue, 4 Jun 2013 17:27:50 -0400 Subject: [PATCH 1/2] Add help instructions and where to find them. --- README | 22 ++++++++++++++++++++-- check_temp.sh | 4 ++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README b/README index cc490a6..2d86fef 100755 --- a/README +++ b/README @@ -5,11 +5,29 @@ It's written in Bash and uses *nix "sensors" and some sed & awk. Default is to check the CPU temperature but this can be changed to, for example, the motherboard temperature with a "--sensor" argument. The plugin complies with the guidelines, for example uses -w -c -v arguments -etc. It also does some basic sanity checks and has a exit 3 catchall. +etc. It also does some basic sanity checks and has a exit 3 catch-all. The plugin was submitted to Nagios Exchange in 2011. Known forks of check_temp: There is a very good Perl fork of check_temp written by Chad Columbus. It's -avalible on Nagios Exchange at +available on Nagios Exchange at http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_temp-2Epl/details + +Required: +1) Install lm-sensors: + a) On Debian/Ubuntu... apt-get install lm-sensors + +2) Run sensors-detect: + sudo sensors-detect + +Let it check for any sensors that you feel are necessary, or all. You can just +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. + +3) Restart module-init-tools service + a) /etc/init.d/module-init-tools restart + or + b) service module-init-tools restart \ No newline at end of file diff --git a/check_temp.sh b/check_temp.sh index 666fb40..8135e34 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -27,6 +27,10 @@ # Latest version of check_temp can be found at the below URL: # # https://bitbucket.org/jackbenny/check_temp # # # +# If you are having problems getting it to work, check the instructions in # +# the README first. It walks you though install lm-sensors and getting it to # +# display sensor data. # +# # ############################################################################### VERSION="Version 0.8" From c19869c89ff3177a41dbc06926f4186e370e83c6 Mon Sep 17 00:00:00 2001 From: Elyrith Date: Tue, 4 Jun 2013 17:30:16 -0400 Subject: [PATCH 2/2] Update repo link. --- check_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_temp.sh b/check_temp.sh index 8135e34..f7837a4 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -25,7 +25,7 @@ # Nagios plugin to monitor CPU and M/B temperature with sensors. # # Written in Bash (and uses sed & awk). # # Latest version of check_temp can be found at the below URL: # -# https://bitbucket.org/jackbenny/check_temp # +# https://github.com/jackbenny/check_temp # # # # If you are having problems getting it to work, check the instructions in # # the README first. It walks you though install lm-sensors and getting it to #