1
0
mirror of https://github.com/larsen0815/check_rasp_temp.git synced 2024-12-21 16:43:54 +01:00

run "vcgencmd" with sudo

This commit is contained in:
larsen0815 2024-08-26 12:49:10 +02:00
parent 6fb421ef0c
commit e3f6e34abb

View File

@ -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