diff --git a/check_rasp_temp.sh b/check_rasp_temp.sh index 329494e..d6b58ca 100644 --- a/check_rasp_temp.sh +++ b/check_rasp_temp.sh @@ -77,7 +77,7 @@ fi # Perform the checks -TEMP=$(vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}') +TEMP=$(sudo vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}') PERF="temp=${TEMP};${WARNING};${CRITICAL};;" if [ "$LOW" == true ] ; then