I’m sorry, not my intention be confusing!
This is my snmpd.conf as of now, and it shows what I have been testing in the last weeks/months.
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.1 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.1
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.2 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.2
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.3 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.3
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.4 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.4
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.5 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.5
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.6 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.6
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.7 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.7
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.8 therm /bin/bash /opt/snmpmoni/bin/ds18b20.sh -g iso.3.6.1.4.1.50083.100.4.1.1.1.7.8
#extend .1.3.6.1.4.1.50083.100.4.1.1.1.7.1
#test - this one is working
extend .1.3.6.1.3.1.1 temp1 /bin/bash /opt/scripts/gettemp.sh 28-3cb9e38162b8
#Test 2
#extend .1.3.6.1.2.1.25.1.8 /bin/sh /home/pi/test_ds18b20
#pass .1.3.6.1.2.1.25.1.8 /bin/sh /home/pi/test_ds18b20
#Test 3
#pass .1.3.6.1.2.1.25.1.10 /bin/sh /usr/local/bin/snmp-ds2-temp
#pass .1.3.6.1.2.1.25.1.9 /bin/sh /usr/local/bin/snmp-ds2-temp
And this issues was mentioned in the github for lm-sensors and perhaps that confused me as well. But I never had lm-sensors installed before yesterday. At least as a debian package, but perhaps I had some libraries via perl/python or something.
And my point of testing the sensors (lm-sensors) to show the results was to show that it could display temps below 0 C.
sudo sensors
rpi_volt-isa-0000
Adapter: ISA adapter
in0: N/A
cpu_thermal-virtual-0
Adapter: Virtual device
temp1: +25.7 C
w1_slave_temp-virtual-0
Adapter: Virtual device
temp1: -3.0 C
Thus making the idea of lm-sensor gauge32 issues faulty, and maybe it was an Librenms issue anyways!
I have no idea were .1.3.6.1.3.1.1 came from! I have been everywhere to look for oid/mibs for this sensor.
And here is the results of the snmpwalk -v 2c -c community 192.168.1.50 1.3.6.1.4.1.2021.13.16 like you said:
iso.3.6.1.4.1.2021.13.16.2.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.2021.13.16.2.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.2021.13.16.2.1.2.1 = STRING: "temp1"
iso.3.6.1.4.1.2021.13.16.2.1.2.2 = STRING: "w1_slave_temp-virtual-0:temp1"
iso.3.6.1.4.1.2021.13.16.2.1.3.1 = Gauge32: 26254
iso.3.6.1.4.1.2021.13.16.2.1.3.2 = Gauge32: 4294964421
python results on the same sensor at the same time:
06/12/23@20:37:32 - -2.9 C
snmpwalk localhost .1.3.6.1.3.1.1 results at the same time: -note no Gauge32 issues
iso.3.6.1.3.1.1.1.0 = INTEGER: 1 iso.3.6.1.3.1.1.2.1.2.5.116.101.109.112.49 = STRING: "/bin/bash" iso.3.6.1.3.1.1.2.1.3.5.116.101.109.112.49 = STRING: "/opt/scripts/gettemp.sh 28-00000e695099" iso.3.6.1.3.1.1.2.1.4.5.116.101.109.112.49 = "" iso.3.6.1.3.1.1.2.1.5.5.116.101.109.112.49 = INTEGER: 5 iso.3.6.1.3.1.1.2.1.6.5.116.101.109.112.49 = INTEGER: 1 iso.3.6.1.3.1.1.2.1.7.5.116.101.109.112.49 = INTEGER: 1 iso.3.6.1.3.1.1.2.1.20.5.116.101.109.112.49 = INTEGER: 4 iso.3.6.1.3.1.1.2.1.21.5.116.101.109.112.49 = INTEGER: 1 iso.3.6.1.3.1.1.3.1.1.5.116.101.109.112.49 = STRING: "-2875" iso.3.6.1.3.1.1.3.1.2.5.116.101.109.112.49 = STRING: "-2875" iso.3.6.1.3.1.1.3.1.3.5.116.101.109.112.49 = INTEGER: 1 iso.3.6.1.3.1.1.3.1.4.5.116.101.109.112.49 = INTEGER: 0 iso.3.6.1.3.1.1.4.1.2.5.116.101.109.112.49.1 = STRING: "-2875"
sudo sensors result at the same time:
w1_slave_temp-virtual-0
Adapter: Virtual device
temp1: -2.9 C
So the STRING: “-2875” is correct, but Librenms does not compute!
Hopefully this will clears things up!