
-Added following line edits info to comments at the top and increased version number -Line 193, modified sensor parsing to cut after the first '+' since all positive temperatures are preceded by a + and the one we want is labeled first -Line 211, reduced "verbosity" needed to see verbose info (was 2: -v -v) -Line 229-232, now checks if no sensor data was found and exits with STATE_UNKNOWN -Fixed 2 typos, one in output and other an in-line comment -Updated line numbers in previous version info lines in comments since my comments pushed the lines down
check_temp A small Nagios plugin that checks the CPU (or M/B) temperature with lm-sensors. 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. 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 http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_temp-2Epl/details
Description
Languages
Shell
100%