Been using LibreNMS for a while now and am looking to monitor some Raspberry Pis for a project at a University where I work. Doing some work at home first but having some problems monitoring voltages, frequencies, etc from the Pis. Temperature works fine though.
Came across this thread and tried everything in it first:
Running the latest Raspian OS. Have done the following so far:
Installed snmp snmpd snmp-mibs-downloader
Configured snmpd.conf with the example file for LibreNMS.
Added extend raspberry /usr/bin/raspberry.sh at the end of the file.
Downloaded raspberry.sh to /usr/bin and made executable.
Added Debian-snmp ALL=(ALL) NOPASSWD: /usr/bin/raspberry.sh, /usr/bin/vcgencmd* to sudoers.
Finally, I commented out the mibs line in snmp.conf. This seemed to resolve the issue for many of the posters in the original thread. However I am no further along.
If I query SELECT sensor_class, sensor_oid FROM sensors WHERE device_id=1 I only see an entry for temperature.
I’m totally stuck at this stage. If anyone has any idea I’d be very grateful. I’d love to use the LibreNMS install at our University to monitor the Pis i want to setup there.
Thanks for the reply. I noticed you were one of the guys in the thread I linked with the same issue. I have commented out the mibs line from the snmp.conf file and can run the raspberry.sh script myself and get output. I amended the sudoers file with ‘Debian-snmp’ as I can see Raspbian uses a different user for SNMP.
The file /etc/snmp/snmp.conf should be blank. (Well, the lines that are in it should be commented out). Double check that and restart the snmp deamon to apply the changes.
That raspberry script is running fine, the entries suggest there is nothing wrong with that.