Linux、Python爱好者,推广者。
分类: LINUX
2009-04-25 17:24:14
SNMP服务器端配置文件修改如下/etc/snmp/snmpd.conf:
41 #com2sec notConfigUser default public
42 com2sec notConfigUser 127.0.0.1 public(本机)
43 com2sec notConfigUser 192.168.80.2 public(本机)
44 com2sec notConfigUser 192.168.2.2 public(要监控的客户端,如果有多个写多行即可)
65 #access notConfigGroup "" any noauth exact systemview none none
66 access notConfigGroup "" any noauth exact all none none
#view all included .1 80
90 view all included .1 80
SNMP客户端端配置文件修改如下/etc/snmp/snmpd.conf:
41 #com2sec notConfigUser default public
42 com2sec notConfigUser 192.168.2.1 public(指明服务器的ip地址为192.168.2.1)
64 #access notConfigGroup "" any noauth exact systemview none none
65 access notConfigGroup "" any noauth exact all none none
88 #view all included .1 80
89 view all included .1 80
启动服务端和客户端:service snmpd restart。