Update snmp-cpu-temp.sh

Reading CPU temperature using sensors package
This commit is contained in:
Jan Zahradník
2024-09-14 19:07:50 +02:00
committed by GitHub
parent 556a3c0519
commit c415fe9353

View File

@ -3,6 +3,6 @@ if [ "$1" = "-g" ]
then then
echo .1.3.6.1.2.1.25.1.8 echo .1.3.6.1.2.1.25.1.8
echo gauge 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 fi
exit 0 exit 0