From c415fe93535db25a9de1ef1381a2d4bf6b76c03b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Zahradn=C3=ADk?= Date: Sat, 14 Sep 2024 19:07:50 +0200 Subject: [PATCH] Update snmp-cpu-temp.sh Reading CPU temperature using sensors package --- snmp-cpu-temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snmp-cpu-temp.sh b/snmp-cpu-temp.sh index 78efbb7..a0823a1 100644 --- a/snmp-cpu-temp.sh +++ b/snmp-cpu-temp.sh @@ -3,6 +3,6 @@ if [ "$1" = "-g" ] then echo .1.3.6.1.2.1.25.1.8 echo gauge -echo `cat /sys/class/thermal/thermal_zone2/temp | sed 's/\(.\)..$/.\1/'` +echo `sensors -u | grep temp1_input -m 1 | awk '{print $2}' | sed 's/[0-9][0-9]$//'` fi exit 0