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:
parent
6fb421ef0c
commit
e3f6e34abb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user