Closed sk-lundi closed 1 year ago
Then you don't have a sensor for zone2 try this commands to find the right sensor: cat /sys/class/thermal/thermal_zone/type cat /sys/class/thermal/thermal_zone/temp
Heya, got the same problem here. it's a fujitsu dual socket server, if that matters. when i run cat /sys/class/thermal/thermal_zone0/temp or cat /sys/class/thermal/thermal_zone1/temp i'll get the temps just fine, cat /sys/class/thermal/thermal_zone*/type returns x86_pkg_temp. But where do i need to change these values in your scripts? thanks in advance!
Hey,
Just edit line 6 in the file snmp-cpu-temp.sh
Hey,
yeah i tried that, still getting a "null2" back...see screenshot.
is the system output maybe in the wrong format? Seems to me like there are some zeros too much
Thanks and Cheers!
Hi,
an your snmp-cpu-temp.sh looks like this, with /sys/class/thermal/thermal_zone1/temp and .1.3.6.1.2.1.25.1.8?
if [ "$1" = "-g" ]
then
echo .1.3.6.1.2.1.25.1.8
echo gauge
echo `cat /sys/class/thermal/thermal_zone1/temp | sed 's/\(.\)..$/.\1/'`
fi
exit 0
i've found my mistake, queried the wrong OID....sorry for that and thanks for the help! works fine now!
no problem :smile:
Sensor is working fine but only shows 0 on the Sensor