- 论坛徽章:
- 0
|
对了,还不行检查一下
打开默认的/etc/snmp/snmpd.conf文件,更改如下配置:
1、查找以下字段:
sec.name source community
com2sec notConfigUser default public
将"comunity"字段改为你要设置的密码.比如"public".
将“default”改为你想哪台机器可以看到你的snmp信息,如10.10.10.10。
2、查找以下字段:
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none
将"read"字段改为all.
3、查找以下字段:
# incl/excl subtree mask
#view all included .1 80
将该行前面的"#"去掉.
4.检查安装包,是否安装完成
net-snmp-libs-5.3.1-14.el5
net-snmp-utils-5.3.1-14.el5
net-snmp-devel-5.3.1-14.el5
net-snmp-5.3.1-14.0.1.el5
net-snmp-perl-5.3.1-14.el5
php-snmp-5.1.6-12.el5 |
|