给树莓派按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
本文介绍了如何简单地配置树莓派上的SNMP服务。主要步骤包括修改agentAddress以允许远程访问,并启用公共只读社区名。通过这些更改,可以轻松实现对树莓派状态的监控。
328

被折叠的 条评论
为什么被折叠?



