有趣的事

ubuntu Lucid(10.04) snmp snmpd

ubuntu Lucid(10.04) snmp snmpd 安装 监控 系统状态

apt-get install snmp snmpd
```     
vim /etc/snmp/snmpd.conf
```

修改:

access MyROSystem "" any noauth exact all none none
```

增加:

agentaddress IP
```

本地测试:

snmpwalk -v 2c -c public localhost
```

远程访问:

vim /etc/default/snmpd
```

修改:

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
```

重启:

/etc/init.d/snmpd restart
```

添加远程用户:

/etc/init.d/snmpd stop
net-snmp-config --create-snmpv3-user -ro -A password -a MD5 username
/etc/init.d/snmpd start
```

测试:

snmpwalk -v 3 -l authNoPriv -a MD5 -u username -A PASSWORD IP:161 sysDescr
```

ubuntu Lucid(10.04) snmp snmpd 安装 监控 系统 状态

相关阅读