Raspberry PI - Temperature, Voltage , Freq

I had the same problem and this was one of the things I fixed. Has this been reported to the LibreNMS team so it can be added to the code?

Hmmm … this has been working for a long time, just broken again recently. Anyone else seeing this as well?

Thanks!

@arrmo I just set it up for the first time here. What problem are you seeing?

Do you see any output when you issue a command like this?

snmpwalk -v2c -c COMMUNITY -M /opt/librenms/mibs HOSTNAME .1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121

If that one yields no results, try this one (note the single quotes, they are needed to escape the double quotes)

snmpwalk -v2c -c COMMUNITY -M /opt/librenms/mibs HOSTNAME ‘NET-SNMP-EXTEND-MIB::nsExtendOutputFull.“raspberry”’

With the first command,
Timeout: No Response from rpi3b

And the second,
‘NET-SNMP-EXTEND-MIB::nsExtendOutputFull.“raspberry”’: Unknown Object Identifier

On the RPi, checking /etc/snmp/snmpd.conf, I get the following (and this used to work, nothing changed in the configuration),
extend raspberry /usr/bin/raspberry.sh

And running /usr/bin/raspberry.sh,

37.6
1.2000
1.2000
1.2000
1.2250
1200000000
250000000
enabled
disabled
disabled
enabled
enabled
disabled
H264=2
MPG2=disabled
WVC1=disabled
MPG4=2
MJPG=2
WMV9=disabled
WMV9=disabled
H264=enabled
MPG2=1
WVC1=1
MPG4=enabled
MJPG=enabled
WMV9=1

Thoughts? Thanks!

Is snmpd running on the rpi3b? Is lnms getting other stats for it? Do you get any output from snmpwalk if you omit the last argument and query the entire tree?

OK, I was able to fix this - had to remove the entire history for the device, and run the daily update for LibreNMS => then re-run discovery and polling. It’s back … :-).

Thanks!

I’ve tried this half dozen times now, no luck still. How do you remove the device history without deleting it? Also tried deleting and re-adding device. Weird thing is that it only affects 1/3 RPIs. My other two started displaying their sensors again after the above fixes.

I’ve noo success (deleted the Device and added again).

/etc/snmp/snmpd.conf contains

extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
extend raspberry /usr/bin/sudo /bin/sh /usr/local/lib/snmp/raspberry.sh

Anny ideas what could do further

/usr/local/lib/snmp/raspberry.sh is

#!/bin/bash
#######################################
# please read DOCS to succesfully get #
# raspberry sensors into your host    #
#######################################
picmd='/usr/bin/vcgencmd'
pised='/bin/sed'
getTemp='measure_temp'
getVoltsCore='measure_volts core'
getVoltsRamC='measure_volts sdram_c'
getVoltsRamI='measure_volts sdram_i'
getVoltsRamP='measure_volts sdram_p'
getFreqArm='measure_clock arm'
getFreqCore='measure_clock core'
getStatusH264='codec_enabled H264'
getStatusMPG2='codec_enabled MPG2'
getStatusWVC1='codec_enabled WVC1'
getStatusMPG4='codec_enabled MPG4'
getStatusMJPG='codec_enabled MJPG'
getStatusWMV9='codec_enabled WMV9'

$picmd $getTemp | $pised 's|[^0-9.]||g'
$picmd "$getVoltsCore" | $pised 's|[^0-9.]||g'
$picmd "$getVoltsRamC" | $pised 's|[^0-9.]||g'
$picmd "$getVoltsRamI" | $pised 's|[^0-9.]||g'
$picmd "$getVoltsRamP" | $pised 's|[^0-9.]||g'
$picmd "$getFreqArm"  | $pised 's/frequency([0-9]*)=//g'
$picmd "$getFreqCore" | $pised 's/frequency([0-9]*)=//g'
$picmd "$getStatusH264" | $pised 's/H264=//g'
$picmd "$getStatusMPG2" | $pised 's/MPG2=//g'
$picmd "$getStatusWVC1" | $pised 's/WVC1=//g'
$picmd "$getStatusMPG4" | $pised 's/MPG4=//g'
$picmd "$getStatusMJPG" | $pised 's/MJPG=//g'
$picmd "$getStatusWMV9" | $pised 's/WMV9=//g'
$picmd "$getStatusH264" | $pised 's/enabled/2/g'
$picmd "$getStatusMPG2" | $pised 's/enabled/2/g'
$picmd "$getStatusWVC1" | $pised 's/enabled/2/g'
$picmd "$getStatusMPG4" | $pised 's/enabled/2/g'
$picmd "$getStatusMJPG" | $pised 's/enabled/2/g'
$picmd "$getStatusWMV9" | $pised 's/enabled/2/g'
$picmd "$getStatusH264" | $pised 's/disabled/1/g'
$picmd "$getStatusMPG2" | $pised 's/disabled/1/g'
$picmd "$getStatusWVC1" | $pised 's/disabled/1/g'
$picmd "$getStatusMPG4" | $pised 's/disabled/1/g'
$picmd "$getStatusMJPG" | $pised 's/disabled/1/g'
$picmd "$getStatusWMV9" | $pised 's/disabled/1/g'

sudo -u snmp /usr/local/lib/snmp/raspberry.sh gives

58.4
1.2000
1.2000
1.2000
1.2250
800000000
250000000
enabled
disabled
disabled
enabled
enabled
disabled
H264=2
MPG2=disabled
WVC1=disabled
MPG4=2
MJPG=2
WMV9=disabled
H264=enabled
MPG2=1
WVC1=1
MPG4=enabled
MJPG=enabled
WMV9=1

But lilbreNMS recognizes no sensors :frowning: .

Any ideas what I could do further?