I just installed snmpd from the repos (RaspberryPi 2) as I did dozen of times with Raspbian.
I just can’t get data from SNMP. I only get a handful of mibs but no cpu,mem or even network interfaces.
it dies here
iso.220.127.116.11.18.104.22.168.0 = INTEGER: 393216
iso.22.214.171.124.126.96.36.199.0 = STRING: "dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1360 bcm2708_fb.fbheight=768 bcm2709.boardrev=0xa01041 bcm2709.serial=0xfa048f21 smsc95xx"
iso.188.8.131.52.184.108.40.206.0 = Gauge32: 3
iso.220.127.116.11.18.104.22.168.0 = Gauge32: 43
iso.22.214.171.124.126.96.36.199.0 = INTEGER: 0
iso.188.8.131.52.184.108.40.206.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
Any idea how to get all the standard infos?
And we go! It was a typo in snmpd conf
Would make sense to either make this in to a “How To” with more information what you have done or just delete it as in the moment it doesn’t help at all.
Here I am. I modified the stock /etc/snmp/snmpd.conf file to inject my personal configuration taken from my templates. The file that comes with the package contains
view systemonly included .220.127.116.11.18.104.22.168
This is a tree too deep to have the interfaces, cpu, mem and other mibs available. That line should be replaced with this one
view systemonly included .22.214.171.124.2
to get more mibs from snmp. I left the orignal one and the new one I pasted was commented (# char at the beginning)
Thanks for the update, well I didn’t come across this issue as I have set full access for my snmp monitoring system with
rocommunity RO_snmp 192.168.0.1
That line tells a different thing, who is entitled to use a specific community. BTW I used the version straight from the packaged tools, just used apt-get install snmpd so I assume it is the current version in the repos that limits the available OIDs, not considering further restrictions such the one on the IP you configured.