in-famous-raccoon / proxmox-snmp

SNMP Scripts to monitor Proxmox with PRTG
GNU General Public License v3.0
50 stars 12 forks source link

Receiving only zero values #6

Closed sk-lundi closed 1 year ago

sk-lundi commented 1 year ago

grafik

Sensor is working fine but only shows 0 on the Sensor

in-famous-raccoon commented 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

aviech commented 1 year ago

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!

in-famous-raccoon commented 1 year ago

Hey,

Just edit line 6 in the file snmp-cpu-temp.sh

aviech commented 1 year ago

Hey,

yeah i tried that, still getting a "null2" back...see screenshot.

image

is the system output maybe in the wrong format? Seems to me like there are some zeros too much

image

Thanks and Cheers!

in-famous-raccoon commented 1 year ago

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
aviech commented 1 year ago

i've found my mistake, queried the wrong OID....sorry for that and thanks for the help! works fine now!

in-famous-raccoon commented 1 year ago

no problem :smile: