Raspberry PI - Temperature, Voltage , Freq

I just updated my librenms installation, it looks like the changes were committed. However, the voltage and frequency graphs are blank. I have reverted all other changes requested in this thread, I am also using the latest snmpd extend script (https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/raspberry.sh).

librenms@velocity:~$ ./discovery.php -h picam.quantum.lan -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
ifStackStatus: Unknown Object Identifier (Sub-id not found: (top) -> ifStackStatus)
title:
name: chris
private: 1
expire: 0
https://p.libren.ms/view/714aafd3
librenms@velocity:~$ ./poller.php -h picam.quantum.lan -r -f -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: chris
private: 1
expire: 0
https://p.libren.ms/view/8416c957
librenms@velocity:~$ snmpbulkwalk -OUneb -v2c -c public picam.quantum.lan . | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: chris
private: 1
expire: 0
https://p.libren.ms/view/0ec80f6e

Actually, I think I just posted the same thing to Github. Some working now (excellent!), but frequency and voltage still seems broken? And this is with the old or new shell script on the RPi.

Delete the broken sensors from the sensors table in mysql and allow them to rediscover.

I deleted the devices and re-added them. The only graph I got back was CPU Temperature.

$ ./discovery.php -h picam.quantum.lan -d | ./pbin.sh && \

./poller.php -h picam.quantum.lan -r -f -d | ./pbin.sh &&
snmpbulkwalk -OUneb -v2c -c public picam.quantum.lan . | ./pbin.sh

Paste endpoint: https://p.libren.ms/api/create

ifStackStatus: Unknown Object Identifier (Sub-id not found: (top) → ifStackStatus)
title:
name: chris
private: 1
expire: 0
Untitled - LibreNMS
Paste endpoint: https://p.libren.ms/api/create
title:
name: chris
private: 1
expire: 0
Untitled - LibreNMS
Paste endpoint: https://p.libren.ms/api/create
title:
name: chris
private: 1
expire: 0
Untitled - LibreNMS

Sorry, dumb question, but I don’t want to mess up the database … which table to remove / clear out?

Thanks!

I expect you’ve got /etc/snmp/snmp.conf, if so, remove the contents. Your output looks wrong from the snmpwalk command as it’s not converting the oid into names.

DELETE FROM sensors WHERE device_id=X AND sensor_class IN ('frequency','voltage');

Thanks! Cleared the sensors out, but still the same issue => 0V, 0 Hz.

On my librenms server here is my snmp.conf:

$ cat snmp.conf
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
mibs :

Should I rem out the mibs : line?

I disabled the line in snmp.conf on the server, I ran the discovery,poller, and snmp commands. I now see that it re-created the graphs but they are blank:

DIscovery: Untitled - LibreNMS
Poller: Untitled - LibreNMS
SNMP Walk: Untitled - LibreNMS

On a side note, running the disovery, poller, and snmp now throw lots of errors like this:

Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::= { laEntry 5 }
Cannot adopt OID in UCD-SNMP-MIB: laConfig ::= { laEntry 4 }
Cannot adopt OID in UCD-SNMP-MIB: laLoad ::= { laEntry 3 }
Cannot adopt OID in UCD-SNMP-MIB: laNames ::= { laEntry 2 }
Cannot adopt OID in UCD-SNMP-MIB: laIndex ::= { laEntry 1 }

Exactly what I see as well! That’s what I meant by zero voltages and frequencies.

Thanks!

Sorry folks but I’ve done my best with this, it’s working for me with the data provided. Not sure I can help any further.

Understood. BTW, what changed recently? It was working before, but the recent updates seem to have broken it … :-(.

More than happy to help here, but I’m nowhere near an expert at the LibreNMS code. The script output makes sense, but I’m lost after it goes in to the LibreNMS engine.

It wasn’t working before, the raspberry pi image itself has changed and no longer had a string in we used to detect things.

Ahh, gotcha - didn’t realize they broke things here … :-(.

FYI, I just checked the script output - and I do see the voltages and frequencies in there. So is it really on the RPi image side of things (where the issue is)?

Thanks!

Laf,

Just curious, what was the string used for detection? Also, if you want a Raspberry pi to connect to and play with I can stand one up for you and give you access. Let me know.

What does this mean? I have the extend line on the pi’s for running the raspberry.sh script. Does this need to change?
I feel that with the deprecated manual, and the recent changes, we are missing something that was changed on your end but not on ours.

Like before I can give you access to my LibreNMS, I have two PI’s connected you can test with…

Fix: https://github.com/librenms/librenms/pull/7144

1 Like

Works now - thanks!!!

Weird. I still see only CPU temp on both my PI’s.