您的位置:首页 > 运维架构 > Linux

linux (cent系 snmp)配置

2015-05-27 12:51 225 查看
给树莓派按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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux