Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
d241d1e3e9 | |||
d4756dfb26 | |||
d73db26ece | |||
![]() |
c9db6091a4 | ||
![]() |
4937e2a5e0 |
4
README
4
README
@ -15,5 +15,7 @@ This plugin is based on check_temp which I wrote earlier this year. The code is
|
||||
almost identical to it. Many thanks to Chad Columbus who sent me
|
||||
bugfixes and corrections for check_temp. Without check_temp their would never
|
||||
have been check_gputemp.
|
||||
The plugin were submitted to Nagios Exchange in january 2012.
|
||||
This plugin was submitted to Nagios Exchange in January 2012.
|
||||
|
||||
Version 1.3
|
||||
Thanks to Ryan Loudfoot who added performance data to check_gputemp.
|
||||
|
9
THANKS
Normal file
9
THANKS
Normal file
@ -0,0 +1,9 @@
|
||||
check_temp THANKS file
|
||||
|
||||
check_gputemp was originally written by Jack-Benny Persson.
|
||||
Some kind people have been contributing by reporting problems, suggesting
|
||||
improvements or submitting code.
|
||||
Here is a list of these kind people.
|
||||
|
||||
Chad Columbus ccolumbu@hotmail.com
|
||||
Ryan Loudfoot elyrith@gmail.com
|
@ -25,10 +25,12 @@
|
||||
# Nagios plugin to monitor GPU temperature with aticonfig. #
|
||||
# This only works on ATI cards with the proprietary driver (fglrx). #
|
||||
# Written in Bash (and uses sed & awk). #
|
||||
# Latest version of check_gputemp can be found at the below URL: #
|
||||
# https://github.com/jackbenny/check_gputemp #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
VERSION="Version 1.2"
|
||||
VERSION="Version 1.3"
|
||||
AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)"
|
||||
|
||||
# Sensor program
|
||||
@ -216,21 +218,23 @@ ${SENSORPROG} --adapter=${adapter} --od-gettemperature | grep "Temperature"
|
||||
printf "\n\n"
|
||||
fi
|
||||
|
||||
# Get performance data for Nagios "Performance Data" field
|
||||
PERFDATA=`${SENSORPROG} --adapter=${adapter} --od-gettemperature | grep "Temperature"`
|
||||
|
||||
# And finally check the temperature against our thresholds
|
||||
if [[ "$TEMP" -gt "$thresh_crit" ]]; then
|
||||
# Temperature is above critical threshold
|
||||
echo "GPU $adapter CRITICAL - Temperature is $TEMP"
|
||||
echo "GPU $adapter CRITICAL - Temperature is $TEMP | $PERFDATA"
|
||||
exit $STATE_CRITICAL
|
||||
|
||||
elif [[ "$TEMP" -gt "$thresh_warn" ]]; then
|
||||
# Temperature is above warning threshold
|
||||
echo "GPU $adapter WARNING - Temperature is $TEMP"
|
||||
echo "GPU $adapter WARNING - Temperature is $TEMP | $PERFDATA"
|
||||
exit $STATE_WARNING
|
||||
|
||||
else
|
||||
# Temperature is ok
|
||||
echo "GPU $adapter OK - Temperature is $TEMP"
|
||||
echo "GPU $adapter OK - Temperature is $TEMP | $PERFDATA"
|
||||
exit $STATE_OK
|
||||
fi
|
||||
exit 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user