给树莓派按snmpd 百度出来的snmpd.conf各种不靠谱,抄来超去的。
放狗搜了一下,很简单改两条就行:
Change the agentAddress from:
agentAddress udp:127.0.0.1:161
to, by adding the local IP address (why?):
agentAddress udp:127.0.0.1:161,udp:192.168.0.15:161
Later, I found that all that was needed for that line was:
agentAddress 161
Below the line:
#rocommunity public localhost
add:
rocommunity public (without the initial #)
Restart the SNMP deamon:
sudo /etc/init.d/snmpd restart