1. 为 net-snmp 添加磁盘IO支持:
$ echo "net-analyzer/net-snmp diskio" >> /etc/portage/package.use
2. 安装 net-snmp
$ emerge net-snmp
3. 配置
添加用户:
$ snmpconf
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
选择 1, 后面按照提示操作加入用户jiankongbao 验证模式选 auth
为上面添加的用户设置密码和权限:
$ net-snmp-config --create-snmpv3-user -a SHA -ro jiankongbao
4. 监控宝
监控宝具体设置请参照监控宝提供的wiki: 在Linux服务器上开启安全的SNMP代理
以及 安全指引