From 0e6ea86930425fa0920364035cb857a4e7af318b Mon Sep 17 00:00:00 2001 From: Prins Geryha Date: Wed, 17 Aug 2022 19:58:28 +0200 Subject: [PATCH] Changed thermal_zone Changed form thermal_zone7 to 2. My Proxmox installation did not use more than 0,1,2 folders. Number 2 was CPU. --- 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 cd9e81e..78efbb7 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_zone7/temp | sed 's/\(.\)..$/.\1/'` +echo `cat /sys/class/thermal/thermal_zone2/temp | sed 's/\(.\)..$/.\1/'` fi exit 0