From e3f6e34abb76a225352ed4b638ad08dd9ef0019f Mon Sep 17 00:00:00 2001 From: larsen0815 Date: Mon, 26 Aug 2024 12:49:10 +0200 Subject: [PATCH] run "vcgencmd" with sudo --- check_rasp_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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