You are not alone, I did a fresh install of librenms last week, added a raspberry pi according to the documentation and I too have the same result. I only see the codec graphs.
No, it really is properly reporting the values. Weāre all running the regular SNMP daemon with the SNMP Extend script for the Raspberry Pi set as an extension. It already deals with the vcgencmd calls and properly forwards those when requested via snmpwalk (what @mirino75 posted) and snmpget (what Iām posting now). I can confirm that the temperature and codec states are working on my own installation, but not voltages and frequencies. When I put the discovery script in debug mode, you can see that it properly reports two voltages, but that doesnāt cause the voltage sensors to be added:
Iāve been digging further, and it turns out that pull #5114 was responsible for the sudden inability to detect the other sensors. When I revert the modifcations from this commit to their previous state, Iām suddenly able to get the missing sensors to be finally detected after another discovery script run:
Hi @Jo0Lz seems like I can manually run the rasberry.sh script and it now shows values. I changed the in the rasberry.sh script
picmd=ā/opt/vc/bin/vcgencmdā
and this in the visudo
snmp ALL=(ALL) NOPASSWD: /etc/snmp/raspberry.sh, /opt/vc/bin/vcgencmd*
but doesnāt seem to work still.
I tried the same thing on my OSMC box and still nothing. Did I miss something?
Well, Iām having the same issue. I can see the values when I run the script, and I have some information about the codecs, but LibreNMS doesnāt show it. A few posts back, someone reverted to some older commit of the github, and that seemed to do the trick. Iām just hoping someone notices whatās wrong and fixes it so it will work as intended. (it doesnāt atm.)
Btw, I do see the values when I run the poller, so it does return the values through SNMP, LibreNMS just doesnāt process it. (Like the guys a few posts back pointed out)
I get the same error when I run that commandā¦ How would we go about fixing that?
Uptime seconds: 594616
RRD[update /opt/librenms/rrd/192.168.178.110/uptime.rrd N:594616]
[RRD Disabled]Uptime: 6 days, 21h 10m 16s
SQL[SELECT `lat`,`lng` FROM `locations` WHERE `location`='Livingroom next to TV.' LIMIT 1]
Google geocode engine being used
Bad lat / lng received
Modules status: Global+ OS Device
#### Load poller module unix-agent ####
LibreNMS UNIX Agent: SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '4' AND `attrib_type` = 'override_Unixagent_port' ]
Connection to UNIX agent failed on port .
Iāve checked the Raspberry PI, itās not running a firewall, so connection to a port shouldnāt be an issue. How do I go about resolving that issue? According to the folks a few posts back, everything will work when we change the affected php file to another commit. I think Iāll try that, this is so painfully unclear, Iāve had this running up in Cacti in several minutes
Well, guess I did something wrong. Just retraced every step I did in order to add the PI to LibreNMS.
Iām now getting results of the poller.php, however I still do not see the temperature being graphed or reported. (or anything other than the codecs and their stateā¦)
Results of the poller.php command: ./poller.php -h HOSTNAME -d -r -f -m unix-agent,applications https://pastebin.com/aLvJAUwR
Sorry I told you wrong, pi stuff is in sensors so: ./poller.php -h HOSTNAME -r -f -d -m sensors but yes. after new graphs are created it can take 15 minutes.
Ohā¦ well, I was excited the applications thing is finally returning results, and I can see a lot of graphs, but I really just want to graph the CPU temperature of the PIā¦ Thatās why I set it all up, other devices report back network data and such, and that is enough, I just wanted to see the temperature in a graphā¦
Iām at a loss. I created the script and it runs fine, I can see the results when running the script. I can snmpwalk and get the data I need, it just isnāt being graphed or picked up by the LibreNMS.
The result of the sensor thing is far less interesting, I guess something is still not workingā¦ https://pastebin.com/0nRP8kAh